read.systat(foreign)
read.systat()所属R语言包:foreign
Obtain a Data Frame from a Systat File
获得一个数据框从SYSTAT文件的
译者:生物统计家园网 机器人LoveR
描述----------Description----------
read.systat reads a rectangular data file stored by the Systat SAVE command as (legacy) *.sys or more recently *.syd files.
read.systat读取一个长方形的的SYSTATSAVE命令(旧)*.sys最近*.syd文件中存储的数据文件。
用法----------Usage----------
read.systat(file, to.data.frame = TRUE)
参数----------Arguments----------
参数:file
character variable with the name of the file to read
字符变量的文件名称改为
参数:to.data.frame
return a data frame (otherwise a list)
返回一个数据框(另有一个列表)
Details
详情----------Details----------
The function only reads those Systat files that are rectangular data files (mtype = 1), and warns when files have non-standard variable name codings. The files tested were produced on MS-DOS and Windows: files for the Mac version of Systat have a completely different format.
函数只读取这些的SYSTAT文件是矩形的数据文件(mtype = 1),并警告文件时有非标准的变量名译码。测试文件制作:在MS-DOS和Windows的SYSTAT Mac版本的文件有一个完全不同的格式。
The C code was originally written for an add-on module for Systat described in Bivand (1992 paper). Variable names retain the trailing dollar in the list returned when to.data.frame is FALSE, and in that case character variables are returned as is and filled up to 12 characters with blanks on the right. The original function was limited to reading Systat files with up to 256 variables (a Systat limitation); it will now read up to 8192 variables.
最初写的C代码为SYSTAT附加在Bivand(1992文件)描述的模块。变量名保留尾随美元返回列表中,当to.data.frame是FALSE,并在情况字符变量返回,填补了12右边的空白字符。原有的功能是有限的读SYSTAT文件多达256个变量的(SYSTAT限制);它会读8192个变量。
If there is a user comment in the header this is returned as attribute "comment". Such comments are always a multiple of 72 characters (with a maximum of 720 chars returned), normally padded with trailing spaces.
如果有一个在头的用户评论,这是返回的属性"comment"。这样的评论是永远的72个字符的倍数(最多720返回字符),通常尾随空格填充。
值----------Value----------
A data frame (or list) with one component for each variable in the saved data set.
数据框(或列表),每个变量中保存的数据集的一个组成部分。
作者(S)----------Author(s)----------
Roger Bivand
参考文献----------References----------
SYSTAT-compatible software for modelling spatial dependence among observations. Computers and Geosciences 18, 951–963.
举例----------Examples----------
summary(iris)
iris.s <- read.systat(system.file("files/Iris.syd", package="foreign")[1])
str(iris.s)
summary(iris.s)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|