SASxport-package(SASxport)
SASxport-package()所属R语言包:SASxport
Read and Write SAS Export Files
读取和写入SAS导出文件
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This package provides functions to read, list contents of, and write SAS export files.
这个包提供了函数来读取,列出目录内容,并编写SAS导出文件。
Details
详细信息----------Details----------
The read.xport function reads SAS xport formatted files, augmenting the functionality of the read.xport function provided in the 'foreign' package with additional features borrowed from sasxport.get in Frank Harrell's 'Hmisc' package. Namely, variables are properly coerced into the types specified by the format field. All standard numeric and string SAS formats are supported automatically, while user-defined formats are supported when the user has included the appropriate format data in the xport file via: <pre> PROC FORMAT CNTLOUT=format; </pre> The write.xport function writes one or more data sets into a SAS xport formatted file. Standard R data types, including date and time objects (e.g. Date, and POSIX.t) are stored with proper SAS format types. Handling of object formatting is customizable by providing methods for the function toSAS. This is accomplished by writing a new method for toSAS for the object class of interest. The toSAS method is responsible for converting its argument to either a simple floating point or character variable (the only basic types permitted by the xport format) and adding the appropriate SAS format code in the "SASformat" attribute.
read.xport函数读取SAS的XPORT格式文件,充实借用read.xport弗兰克·哈勒尔的“Hmisc”包的附加功能中的外国包sasxport.get函数提供的功能。也就是说,变量是正确的类型强制转换成指定的格式字段。所有标准的数字和字符串SAS格式支持自动,用户定义的格式时,支持用户数据的XPORT文件中,通过适当的格式:<PRE> PROC FORMAT CNTLOUT的格式; </ pre><X >函数将一个或多个数据集到一个SAS的XPORT格式的文件。标准R的数据类型,包括日期和时间对象(例如write.xport和Date)存储与正确的SAS格式类型。处理对象的格式是可定制的提供的功能POSIX.t的方法。这是通过写一个新的方法toSAS感兴趣的对象类。 toSAS方法负责将其参数转换成一个简单的浮点或字符变量(只允许的XPORT格式的基本类型),并添加相应的SAS toSAS属性的格式代码。
The write.xport function also allows the user to override the operating system type and SAS version information, as well as object creation and modification times.
write.xport功能也允许用户覆盖操作系统的类型和SAS版本信息,以及对象的创建时间和修改时间。
指数----------Index----------
<pre> lookup.xport Lookup Information on a SAS XPORT Format Library read.xport Import SAS XPORT files toSAS.default Convert R data object for storage in SAS xport file units Set or Retrieve the label, SASformat, SASiformat, or units Attribute of a Vector write.xport Write data to a SAS XPORT file </pre>
<PRE> lookup.xport查找信息上一个SAS XPORT格式库read.xport进口SAS XPORT文件toSAS.default转换R的数据对象的SAS的XPORT文件的单位存储在设置或检索的标签,SASformat,SASiformat,或单位属性,矢量write.xport将数据写入到一个SAS的XPORT文件</ pre>
资金----------Funding----------
This creation of this package was partially funded by Metrum Institute http://metruminstitute.org.
这部分,由Metrum研究所http://metruminstitute.org创建这个包。
保持----------Maintainer----------
Gregory R. Warnes greg@warnes.net
格雷戈里河华恩斯greg@warnes.net
支持----------Support----------
Technical support contracts and other services for R, this package, and other packages are available from Random Technologies LLC http://random-technologies-llc.com.
R,这个包,和其他包的技术支持合同和其他服务是可用的从随机Technologies LLC的http://random-technologies-llc.com。
(作者)----------Author(s)----------
Unless otherwise noted, the contents of this package were written by
Gregory R. Warnes <a href="mailto:greg@warnes.net">greg@warnes.net</a>, are
Copyright (c) 2007 by Random Technologies LLC <br>
<a href="http://random-technologies-llc.com">http://random-technologies-llc.com</a>, and are provided under the
terms of the GNU General Public License, version 2.0 or later.
The file 'htond.c' is extracted from BRL-CAD
<a href="http://www.brlcad.org/">http://www.brlcad.org/</a>, written by Michael John Muuss, and is
Copyright (c) 2004-2007 United States Government as represented by
the U.S. Army Research Laboratory, and is utilized and redistributed
under the terms of the GNU Lesser General Public License, version 2.1.
The files 'AFirst.lib.s', 'all.is.numeric.R',
'importConvertDateTime.R', 'in.opererator.R', 'makeNames.R',
'read.xport.R', and 'testDateTime.R' are copied or adapted from the
'Hmisc' package created by Frank E. Harrell, Jr.
<a href="mailto:f.harrell@vanderbilt.edu">f.harrell@vanderbilt.edu</a>, and are utilized and redistributed under
the terms of the GNU General Public License, version 2.0 or later.
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|