R读取xlsx文件

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/chang349276/article/details/79295938

目前发现R中最方便的excel文件读取方法为readxl包,首先按照R包:

install.packages(‘readxl’, repos = ‘https://mirrors.tuna.tsinghua.edu.cn/CRAN‘)
install.packages(‘rlang’, repos = ‘https://mirrors.tuna.tsinghua.edu.cn/CRAN‘)

读取excel文件:

library(readxl)
a <- read_excel('./result.xlsx', sheet=1, na='NA')

猜你喜欢

转载自blog.csdn.net/chang349276/article/details/79295938