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

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

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

                                         List objects in object caches.
                                         对象缓存列表中的对象。

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

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

These functions may be used to find stored object caches on the search path and list the objectes stored in them.  If the object cache is currently not on the search path it is silently attached at position 2.
这些功能可以用来,找到存储对象的缓存上的搜索路径,并列出存储在他们objectes的。如果缓存中的对象是目前的搜索路径上,它被悄悄地安装在位置2。


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


Objects(lib = Sys.getenv("R_LOCAL_CACHE", unset = ".R_Cache"),
        lib.loc = Sys.getenv("R_LOCAL_LIB_LOC", unset = "."),
        all.names = FALSE, pattern = ".*", readonly = FALSE)
ObjectsData(...)
ObjectsUtils(...)
Ls(lib = Sys.getenv("R_LOCAL_CACHE", unset = ".R_Cache"),
        lib.loc = Sys.getenv("R_LOCAL_LIB_LOC", unset = "."),
        all.names = FALSE, pattern = ".*", readonly = FALSE)
LsData(...)
LsUtils(...)



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

参数:lib
The name of the cache directory from which items are to be removed.  May be given as a character string, or as a name, (i.e. without quotes) for convenience.  The default is as follows:   
从该件的高速缓存目录的名称被删除。可能被指定为一个字符串,或作为一个名字,(即不带引号),为方便起见。缺省值是如下:

For Objects, the value of the R environment variable R_LOCAL_CACHE, or .R_Cache if unset,  
对于Objects,R环境变量R_LOCAL_CACHE或.R_Cache,如果取消设置的值,

For ObjectsData, the value of the R environment variable R_CENTRAL_DATA, or .R_Data if unset,  
对于ObjectsData,R环境变量R_CENTRAL_DATA或.R_Data,如果取消设置的值,

For ObjectsUtils, the value of the R environment variable R_CENTRAL_UTILS, or .R_Utils if unset.  
对于ObjectsUtils,R环境变量R_CENTRAL_UTILS或.R_Utils,如果取消设置的值。


参数:lib.loc
The enclosing directory where the cache directory is to be found. The default is as follows:   
封闭目录的缓存目录被发现。缺省值是如下:

For Objects, the value of the R environment variable R_LOCAL_LIB_LOC, or the current working directory if unset,  
Objects,R环境变量的值的R_LOCAL_LIB_LOC,或当前的工作目录,如果取消设置,

For ObjectsDate and ObjectsUtils the value of the R environment variable R_CENTRAL_LIB_LOC, or he user's HOME directory if unset.  
对于ObjectsDate和ObjectsUtilsR环境变量的值的R_CENTRAL_LIB_LOC,或用户的HOME目录,如果取消设置。


参数:all.names
Logical.  Should all names be listed?  Normally objects with names beginning with a period are not listed.  
逻辑。如果所有名称上市?正常情况下,对象的名字开始用了一段没有被列出。


参数:pattern
Regular expression giving the pattern of object names to be listed.  
正则表达式对象名称来上市的格局。


参数:readonly
If the stored object cache is not present on the search path, it is silently attached at position 2.  Should it be attached as "read only"?  
如果存储的对象高速缓存上的搜索路径是不存在的,它被悄悄地安装在位置2。它应该被附加为“只读”?


参数:...
Dummy argument to allow any of the above to be specified.  
上述任何指定的虚参。


Details

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

These convenience functions provide the same functionality as the standard function objects, or equivalently ls, but specialised to stored object caches.  They automatically locate caches on the search path and, optionally, attach them if not currently present.
这些方便的功能提供了相同的功能作为标准功能objects,或等价ls,但专门用于存储对象的缓存。自动定位高速缓存上的搜索路径,如果当前没有附加。


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

A character string vector of object names.
一个字符串矢量对象名。


注意----------Note----------

The standard functions objects or ls may always be used on stored object caches, but require the position on the search path to be specified.
标准功能objects或ls可能永远被使用的存储对象的缓存,但需要到指定的搜索路径上的位置。


(作者)----------Author(s)----------



Bill Venables




参考文献----------References----------



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

objects, ls.
objects,ls。


实例----------Examples----------


## change default cache, keeping any previous setting[#更改默认的缓存,保持所有以前的设置]
oldLC <- Sys.getenv("R_LOCAL_CACHE", unset = ".R_Cache")
Sys.setenv(R_LOCAL_CACHE=".R_Test")

## generate some dummy data[#生成一些虚拟的数据。]
dummy <- rnorm(100)
mn <- mean(dummy)
va <- var(dummy)

## store it in the stored object cache[#存储中存储的对象缓存]
Store(dummy, mn, va)
Search()
Objects()
Remove(mn, va)
Objects()
Remove(Objects())                   # empty the cache[清空缓存]
detach(".R_Test")                   # remove from search path[从搜索路径中删除]
Sys.setenv(R_LOCAL_CACHE=oldLC)     # restore normal default[恢复正常默认]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-8 18:35 , Processed in 0.021968 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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