Day4—小王R语言基础—想不出来起什么标题

2024-03-08 19:51:58 浏览数 (1)

What is R or Rstudio?

  1. programming language
  2. environment that is used for computing,statistics and drawing

Preparations

set the size of words:

mac: 'command -' is lessen,and of course 'command ' is becoming larger

Basic managements

  1. one Rproject only interacts with on directory, so be care with what may annoys u in the future
  2. display dir/files lists
代码语言:R复制
dir()
代码语言:R复制
list.files()
  1. -*/
  2. assignments
代码语言:R复制
a<- 111
  1. deletion
代码语言:R复制
rm(a)
rm(b,c) 
rm(list = ls())
  1. history
代码语言:R复制
history()

click a sentence twice, it will appear behind of '>'

  1. drawing plots and boxplots
代码语言:R复制
plot(runif(50))
代码语言:R复制
boxplot(iris$Sepal.Length~iris$Species,col = c("lightblue","lightyellow","lightpink"))

0 人点赞