找回密码
 注册
查看: 348|回复: 0

R语言 SoDA包 exampleFiles()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 11:22:41 | 显示全部楼层 |阅读模式
exampleFiles(SoDA)
exampleFiles()所属R语言包:SoDA

                                         Path to Files in the Examples Subdirectory
                                         

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Given one or more file names, returns the corresponding paths to files in the "Examples" subdirectory of a package.  With the names argument missing, returns the names of all such files.
由于一个或多个文件名,则返回相应的路径"Examples"子目录包中的文件。 names参数丢失,则返回所有这些文件的名称。


用法----------Usage----------


exampleFiles(names = character(), where = "SoDA", oneFile = FALSE, path = TRUE)



参数----------Arguments----------

参数:names
Either character string names or page numbers matched against the file names defined by the second argument.  See details below.
第二个参数所定义的文件名相匹配的字符串名称或页码。详见下文。


参数:where
The name of the package containing the "Examples" directory, by default, this package, or else the path name of a directory which itself contains the files of interest.  
包含"Examples"目录,默认情况下,这个包,否则一个本身包含文件的目录的路径名的包的名称。


参数:oneFile
If TRUE, and more than one file matches, the caller will be asked to select one of these files.  
如果TRUE,和一个以上的文件匹配,来电者将被要求选择这些文件中的一个。


参数:path
  If TRUE, the file(s) will be returned with full directory paths; else, only with the file names.
如果TRUE“的文件(S)将返回完整的目录路径,否则,只能用文件名。


Details

详细信息----------Details----------

In any call, argument names can be a vector of character string names, expected to match files in the directory of examples. The names may match only the leading part of the file name; in particular, it will often be the case that the actual file name has a suffix such as ".R", omitted in the names argument.
在任何调用,参数names可以是一个矢量的字符串名,预计到文件的目录中的例子相匹配。的名称相匹配的文件名的前面部分,特别是,它会经常的情况是实际的文件名后缀,如".R",省略names参数。

If the argument where is a package name, then that package is expected to have a directory named "Examples", as does this package.  In all other circumstances, this argument must itself be the path name of a directory containing the example files.
如果参数where是包的名称,则该方案,预计有一个目录名为"Examples"一样,这个包。在所有其他情况下,这种说法本身必须包含的示例文件的目录的路径名。

In the case of a package, if the package has a data frame object named examplePages, that object will be used to match page numbers of a document on which the examples appear.  In the default case, the document is the book Software for Data Analysis. If you see an example in the book that appears to be the output from running some R code, enter the page number on which the output starts as the names argument.  Often (though not always) the corresponding R code is one of the files in the Examples directory of the package.  Some other files, such as source in other languages or related data, are also provided corresponding to examples.
在一个包的情况下,如果有一个数据包的帧命名的对象examplePages,该对象将被用来匹配的文档页码的例子出现。在默认情况下,该文件是的书软件进行数据分析。如果例如本书输出一些R码页码输出起始names论点通常(但并不总是)相应的R代码是一个Examples的包目录中的文件。其它一些文件,如在其他语言的或相关的数据源中,还提供了对应实施例。

Note that the same use of page numbers applies in calls to runExample or demoExample.
需要注意的是相同的页码,使用适用于调用runExample或demoExample。


值----------Value----------

Names for the matching files, or for all such files if names was missing.
名称匹配的文件,所有这些文件,如果names失踪。


参见----------See Also----------

runExample to run such files, and
runExample运行这些文件,并

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-8 10:34 , Processed in 0.019821 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表