R Markdown is an easy-to-write plain text format for creating dynamic documents and reports. See Using R Markdown to learn more.
*italic* **bold** _italic_ __bold__
italic bold italic bold
# Header 1
## Header 2
### Header 3
* Item 1
* Item 2
+ Item 2a
+ Item 2b
1. Item 1
2. Item 2
3. Item 3
+ Item 3a
+ Item 3b
End a line with two or more spaces:
Roses are red, <--- 2個の空白あり
Violets are blue.
End a line with two or more spaces: Roses are red,
Violets are blue.
Use a plain http address or add a link to a phrase:
http://example.com
[linked phrase](http://example.com)
http://localhost/Naka.html
[「中山道を行く」を参照](http://localhost/Naka.html)
[「日光街道を行く」を参照](file:///var/www//html/Kaido/Nikkou/Nikkou.html)
Images on the web or local files in the same directory:
![alt text](http://example.com/logo.png)
![alt text](figures/img.png)
![日本橋](/var/www//html/Kaido/Nikkou/Photo/OI000772.jpg){width=40%}
![日本橋](/var/www//html/Kaido/Nikkou/Photo/OI000772.jpg){width=40%}
日本橋(左図)と日本橋(右図)
日本橋(左図)と日本橋(右図)
A friend once said: <--- 次行に空行が必要
> It's always better to give
> than to receive.
A friend once said:
It’s always better to give than to receive.
R code will be evaluated and printed
\`\`\`{r} <- "'''"(バッククォート3個)
summary(cars$dist)
summary(cars$speed)
\`\`\` <- "'''"(バッククォート3個)
There were `#r nrow(cars)` cars studied <- #を外すと評価される
Plain code blocks are displayed in a fixed-width font but not evaulated
\`\`\` <- "'''"(バッククォート3個)
This text is displayed verbatim / preformatted
\`\`\` <- "'''"(バッククォート3個)
We defined the add
function to compute the sum of two
numbers.
Plain code blocks are displayed in a fixed-width font but not evaulated
This text is displayed verbatim / preformatted
We defined the `add` function to compute the sum of two numbers.
We defined the add
function to compute the sum of two
numbers.
Inline Equation $f(x) = x^2$
Display Equation
$$ F(x) = \int_{t=c}^{x} f(t) dt $$
Inline Equation \(f(x) = x^2\) Display Equation \[ F(x) = \int_{t=c}^{x} f(t) dt \]
Three or more asterisks or dashes: <--- 次行に空行が必要
******
------
Three or more asterisks or dashes:
Header 1(left) | Header 2(center)| Header 3(right)
:------------- | :-------------: | ---------: |
Cell-11 | Cell-12 | cel-13 |
Cell-21 | Cell-22 | cel-23 |
Reference Style Links and Images
Header 1(left) | Header 2(center) | Header 3(right) |
---|---|---|
Cell-11 | Cell-12 | cel-13 |
Cell-21 | Cell-22 | cel-23 |
Reference Style Links and Images
A [linked phrase-1][id1].
At the bottom of the document:
[id1]: http://localhost/Naka.html "Title"
At the bootom of document:
![alt text-2][id2]
At the bottom of the document:
[id2]: /var/www//html/Kaido/Nikkou/Photo/OI000772.jpg "Title-2 width{40%}"
At the bottom of the document:
superscript^2^
subscript~2~
~~strikethrough~~
Typographic Entities
ASCII characters are transformed into typographic HTML entities:
Straight quotes ( " and ' ) into “curly” quotes
Dashes (“--” and “---”) into en- and em-dash entities
Three consecutive dots (“...”) into an ellipsis entity
superscript2
subscript2
strikethrough Typographic Entities
ASCII characters are transformed into typographic HTML entities: Straight quotes ( ” and ’ ) into “curly” quotes Dashes (“–” and “—”) into en- and em-dash entities Three consecutive dots (“…”) into an ellipsis entity