1. 查看R的版本信息,以及相关安装包的信息
sessionInfo()
2. How to Read Excel File in R (xlsx/xls) using R Studio – R Tutorial for Beginners
https://www.youtube.com/watch?v=QnbHQ2ebSb4
3. Read .xls文件
install.packages("readxl")
library(readxl)
data <— read_excel("/home/slave/test.xls",sheet=1,range="F1:F44")
a1 <— data$a1
b1 <— data$b1
4. 读取.xlsx文件
install.packages("readxl")
library(readxl)
data <— read_excel("/home/slave/test.xlsx",sheet=1)
4. 情况一:‘lib’没有被指定
.libPaths()
.libPaths("C:/Users/Administrator/Desktop/test")