R引入其他统计软件数据的扩…
来源:互联网 发布:mac进入屏保快捷键 编辑:程序博客网 时间:2024/06/07 17:58
R引入其他统计软件数据的扩展包是foreign,
在主窗口命令提示符下键入“library(foreign)”后,R软件载入“foreign”模块,
可以读入Minitab, S, SAS, SPSS, Stata, Systat, dBase等软件相应格式的数据:
读入epi5~6的数据命令为read.epiinfo(“文件名.rec”);
读入Stata5~10数据命令为read.dta(“文件名.dta”);
对于SAS,R只能读入SAS Transportformat(XPORT)文件,
因此需要将常规的SAS数据文件(.ssd和.sas7bdat)转换为Transportformat(XPORT)文件,再用命令read.xport( )读入,需注意:
1.采用stattransfer软件转化
2.import and put it into the same folderas your R working directory,
In order to check what your R working directory is type:
> getwd()
If the directory it returns is not the directory you would liketo use, then simply use the following function to set your workingdirectory:
> setwd()
一定要把文件 into the same folder as your Rworking directory
读入SPSS数据文件命令为read.spss();读入.DBF格式文件命令为read.dbf();读入Systat软件.syd格式数据文件命令为read.systat();
读入Minitab数据命令为read.mtp()。
- R引入其他统计软件数据的扩…
- R:导入其他样式数据的方法
- 统计软件R
- R统计软件资源
- Ubuntu8安装统计软件R
- R软件中数据的排序
- 统计建模与R软件第三章习题…
- 统计建模与R软件第二章习题…
- 统计建模与R软件第四章习题…
- 统计建模与R软件第五章习题…
- 统计建模与R软件第六章习题…
- 统计建模与R软件第七章习题…
- 引入其他的模式文档
- 关于不适用etl的其他方式做数据统计
- R的数据可视化,各种图表,常用统计量计算
- R统计笔记(五):数据对象之间的转换
- R(1.9.0)和其他统计语言的性能比较(2003年)
- R(1.5.1)和其他统计语言的性能比较(2003年)
- 用花生壳、tomcat、个人电脑架设起…
- of的用法!
- 匹配任意字符问题汇总
- P-value
- Java--日期的使用
- R引入其他统计软件数据的扩…
- indent格式化C代码
- 免费的天气预报webservice接口
- java版的memcached client及…
- ibatis基础上添加memcached缓存
- 二分图的最大权匹配
- Web服务入门之一:通过Xfire创建本…
- 如何设置其它进程中listctrl控件CHECKBOX的选中状态
- Axis2创建WebService实例