Day6 庐州月
安装使用R语言包(以dplyr为例)
1、安装下载镜像
2、安装 三部曲 options ("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/")) options(BioC_mirror="https://mirrors.ustc.edu.cn/bioc/") install.packages("dplyr") library(dplyr)
3、5个常用函数
提取内置数据iris(经典数据集,常用作教学)

上框 ctrl+enter
下框 enter
查看表格 View(test)
插入列mutate (test, new = Sepal.Length * Sepal.Width)
列筛选 select()
行筛选filter()
排序arrange()
汇总summarise()
网友评论