篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown R Gist相关的知识,希望对你有一定的参考价值。
### Clear sonsole
Ctrl+l
### Set working directory
setwd(dir)
### Get working directory
getwd()
### Clear environment
remove(list = ls())
### How to use a package
install.packages('fortunes') # install
library(fortunes) # load
lsf.str("package:fortunes") # view all functions in package
fortune("This is R") # call
### Function help
help(rnorm)
### Usage exmpale
example(rnorm)
### Run R script
source("foo.R")