在主窗口命令提示符下键入“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 to use, then simply use the following function to set your working directory: > setwd() 一定要把文件 into the same folder as your R working directory
|
R引入其他统计软件数据的扩…
最新推荐文章于 2021-11-10 09:54:54 发布
原文地址:R引入其他统计软件数据的扩展包是foreign
作者:生物统计