zl程序教程

您现在的位置是:首页 >  其他

当前栏目

如何做好R语言笔记

2023-02-26 09:51:59 时间

title: "Note Exercise"

output: html_document

date: "2023-02-02"


knitr::opts_chunk$set(echo = TRUE)

R Markdown Mac快捷键

快捷键

(1) command+1\2\3\4\5\6分别代表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:

summary(cars)

Including Plots

You can also embed plots, for example:

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.