如何做好R语言笔记

2023-02-02 15:28:19 浏览数 (1)


title: "Note Exercise"

output: html_document

date: "2023-02-02"


代码语言:{r setup, include=FALSE}复制
knitr::opts_chunk$set(echo = TRUE)

R Markdown Mac快捷键

快捷键

(1) command 123456分别代表1-6级标题

(2) 引用:> 空格

(3) 输入命令快捷键:Mac:command option i Windows:Ctrl Alt i

(4) 反引号:option 数字1前面的那个键

(5) 生成md文件:knitr::knit("tab键选择要转换的Rmd文件"),使用VScode软件看md文件

(6) 分隔线:***

(7) 腾讯云文档,需要自行插入图片

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

代码语言:{r cars}复制
summary(cars)

Including Plots

You can also embed plots, for example:

代码语言:{r pressure, echo=FALSE}复制
plot(pressure)

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.

0 人点赞