provide.data(sm)
provide.data()所属R语言包:sm
Making data available as data.frame
数据作为数据框
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This is a utility function, widely used in the scripts acconpanying the book described below. The function provides access to the dataset identified by name. For flexibility, the datasets are provided in ASCII form, with the name of each variable listed in the first row of the file. This function reads the files and makes the data available as a data frame.
这是一个实用的功能,广泛应用于书中描述的脚本acconpanying。该功能提供了确定的name到数据集的访问。为了提高灵活性,所提供的数据集以ASCII码的形式,与该文件的第一行中列出的每个变量的名称。这个函数读取文件,并且使数据作为一个数据框。
用法----------Usage----------
provide.data(data, path, options = list())
参数----------Arguments----------
参数:data
name of the data to be loaded and attached as data.frame
data.frame而被装入和连接的数据名
参数:path
the path where the data and its documentation should be searched for, The default value is an appropriate sub-directory of the sm package.
数据和文档的路径应搜索,默认值是一个合适的子sm包的目录。
参数:options
A list of options passed to sm.options. The one used is describe, a logical flag. If describe=TRUE (default), a documentation file of the data is searched and printed, if available. </table>
列表的选项传递给sm.options。使用的是describe,一个逻辑标志。如果describe=TRUE(默认),文档文件中的数据进行搜索和打印,如果有的话。 </ TABLE>
Details
详细信息----------Details----------
the data file is assumed to be called data.dat and the documentation file describing the data (if present) is assumed to be called data.doc. If the data.frame is already attached, it is re-attached in the second position of the search list.
数据文件被称为data。dat和文档文件描述的数据(如果有的话)被称为data文件。如果data.frame已经连接,重新连接在第二的位置search名单。
To set describe=FALSE for the rest of the current session, use sm.options(describe=FALSE)
要设置describe=FALSE,其余在当前会话,使用sm.options(describe=FALSE)的
The function can easily be adapted to play a similar role for other packages.
该功能可以很容易地适应其他软件包起到类似的作用。
值----------Value----------
none
没有
副作用----------Side Effects----------
messages are printed on the command window, describing progress of the operation. If describe=TRUE and a documentation file exists, this is printed on the command windows or another windows, depending on the type of platform where the program is executed.
信息印在命令窗口中,描述操作的过程。如果describe=TRUE和文档文件存在,这是印在命令窗口或其他窗口,根据执行程序的平台的类型。
(作者)----------Author(s)----------
Bowman, A.W. and Azzalini, A.
参见----------See Also----------
data.frame, attach, sm, sm.options
data.frame,attach,sm,sm.options
实例----------Examples----------
provide.data(birth)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|