![](/img/trans.png)
[英]How can I read selected rows from a large file using the R “readLines” command and write them to a data frame?
[英]How can we read SAS data through readLines in R?
readLInes读取SAS数据时出现错误
readLines("C:/Users/shahch07/Desktop/364978/MEAP/Nig/2015/Prelim/Input/akure_city_res_design.sas7bdat")
[1] "" ")0" ")0" ")" "" "" "" "" "" ""
[11] "" "" ""
There were 12 warnings (use warnings() to see them)
您可能需要使用专用的导入功能,例如:
f <- "C:/Users/shahch07/Desktop/364978/MEAP/Nig/2015/Prelim/Input/akure_city_res_design.sas7bdat"
haven::read_sas(f) # haven
rio::import(f) # or, a more convenient wrapper around haven
使用install.packages(c("rio"))
安装那些软件包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.