分类: R程序 |
在主窗口命令提示符下键入“library(foreign)”后,R软件载入“foreign”模块, 可以读入Minitab, S, SAS, SPSS, Stata, Systat, dBase等软件相应格式的数据: 因此需要将常规的SAS数据文件(.ssd和.sas7bdat)转换为Transport format(XPORT)文件,再用命令read.xport( )读入,需注意: 1.采用stattransfer软件转化 2.import and put it into the same folder as your R working directory, In order to check what your R working directory is type: If the directory it returns is not the directory you would like |