全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 LATEX论坛
1086 0
2016-06-18

This document provides quick references to the most commonly used R Markdown syntax. See the following articles for more in-depth treatment of all the capabilities of R Markdown:

Emphasis*italic*   **bold**_italic_   __bold__
Headers# Header 1## Header 2### Header 3
Lists

Unordered List:

* Item 1* Item 2    + Item 2a    + Item 2b

Ordered List:

1. Item 12. Item 23. Item 3    + Item 3a    + Item 3b

R Code Chunks

R code will be evaluated and printed

```{r}summary(cars$dist)summary(cars$speed)```

Inline R CodeThere were `r nrow(cars)` cars studied
Links

Use a plain http address or add a link to a phrase:

http://example.com[linked phrase](http://example.com)

Images

Images on the web or local files in the same directory:

![]()![optional caption text](figures/img.png)

BlockquotesA friend once said:> It's always better to give> than to receive.
Plain Code Blocks

Plain code blocks are displayed in a fixed-width font but not evaulated

```This text is displayed verbatim / preformatted```

Inline CodeWe defined the `add` function tocompute the sum of two numbers.LaTeX Equations
LaTeX Equations

Inline equation:

$equation$

Display equation:

$$ equation $$

Horizontal Rule / Page Break

Three or more asterisks or dashes:

******------

TablesFirst Header  | Second Header------------- | -------------Content Cell  | Content CellContent Cell  | Content CellReference Style Links and Images
LinksA [linked phrase][id].

At the bottom of the document:

[id]: http://example.com/ "Title"Images![alt text][id]

At the bottom of the document:

[id]: figures/img.png "Title"

Manual Line Breaks

End a line with two or more spaces:

Roses are red,Violets are blue.

Miscellaneoussuperscript^2^~~strikethrough~~

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群