read.ssd(foreign)
read.ssd()所属R语言包:foreign
Obtain a Data Frame from a SAS Permanent Dataset, via read.xport
获得SAS永久数据集的数据框,通过read.xport
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Generates a SAS program to convert the ssd contents to SAS transport format and then uses read.xport to obtain a data frame.
生成的SAS程序SAS传输格式转换SSD的内容,然后使用read.xport获得一个数据框。
用法----------Usage----------
read.ssd(libname, sectionnames,
tmpXport=tempfile(), tmpProgLoc=tempfile(), sascmd="sas")
参数----------Arguments----------
参数:libname
character string defining the SAS library (usually a directory reference)
字符串定义SAS库(通常是一个目录参考)
参数:sectionnames
character vector giving member names. These are files in the libname directory. They will usually have a .ssd0x or .sas7bdat extension, which should be omitted.
特征向量给成员的名字。这些libname目录中的文件。他们通常有一个.ssd0x或.sas7bdat扩展,这应该被忽略。
参数:tmpXport
character string: location where temporary xport format archive should reside – defaults to a randomly named file in the session temporary directory, which will be removed.
字符串:XPORT临时格式归档文件应驻留的位置 - 默认在会议临时目录随机命名的文件,该文件将被删除。
参数:tmpProgLoc
character string: location where temporary conversion SAS program should reside – defaults to a randomly named file in session temporary directory, which will be removed on successful operation.
字符串:临时转换SAS程序应驻留的位置 - 默认在会议随机命名的临时目录的文件,将删除成功运作。
参数:sascmd
character string giving full path to SAS executable.
字符串给予的SAS可执行文件的完整路径。
Details
详情----------Details----------
Creates a SAS program and runs it.
创建一个SAS程序并运行它。
Error handling is primitive.
错误处理是原始的。
值----------Value----------
A data frame if all goes well, or NULL with warnings and some enduring side effects (log file for auditing)
一个数据框,如果一切顺利,或NULL警告和一些持久的副作用(日志文件进行审核)
注意----------Note----------
<STRONG>This requires SAS to be available.</STRONG> If you have a SAS dataset without access to SAS you will need another product to convert it to a format such as .csv, for example "Stat/Transfer" or "DBMS/Copy" or the "SAS System Viewer" (Windows only).
<strong>这需要SAS是。</>如果您有没有接入到SAS的SAS数据集,你会需要其他产品,将其转换为格式如.csv,例如STAT /转移或DBMS /复制“或”SAS系统的浏览器(仅Windows)。
作者(S)----------Author(s)----------
For Unix: VJ Carey <a href="mailto:stvjc@channing.harvard.edu">stvjc@channing.harvard.edu</a>
参见----------See Also----------
read.xport
read.xport
举例----------Examples----------
## if there were some files on the web we could get a real[#如果有在网络上的一些文件,我们可以得到一个真正的]
## runnable example[#可运行的例子]
## Not run: [#无法运行:]
R> list.files("trialdata")
[1] "baseline.sas7bdat" "form11.sas7bdat" "form12.sas7bdat"
[4] "form13.sas7bdat" "form22.sas7bdat" "form23.sas7bdat"
[7] "form3.sas7bdat" "form4.sas7bdat" "form48.sas7bdat"
[10] "form50.sas7bdat" "form51.sas7bdat" "form71.sas7bdat"
[13] "form72.sas7bdat" "form8.sas7bdat" "form9.sas7bdat"
[16] "form90.sas7bdat" "form91.sas7bdat"
R> baseline <- read.ssd("trialdata","baseline")
R> form90 <- read.ssd("trialdata","form90")
## Or for a Windows example[#或一个Windows示例]
sashome <- "/Program Files/SAS/SAS 9.1"
read.ssd(file.path(sashome, "core", "sashelp"), "retail",
sascmd = file.path(sashome, "sas.exe"))
## End(Not run)[#结束(不运行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|