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

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

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

                                         Remove stored objects from the disc.
                                         从光盘中删除存储的对象。

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

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

These utilities may be used to remove objects under delayed assignment from the disc permanently, where objects are respectively held in a local cache, a central data cache or central utilities cache.
这些工具可以用来,延迟分配下从光盘中删除对象,永久,对象分别保持在本地缓存中,一个中央数据高速缓存或中央公用事业缓存。


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


Remove(..., list = character(0),
       lib = Sys.getenv("R_LOCAL_CACHE", unset = ".R_Cache"),
       lib.loc = Sys.getenv("R_LOCAL_LIB_LOC", unset = "."))
RemoveData(...)
RemoveUtils(...)



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

参数:...
items to be removed.  Names are taken as objects to be removed.  Character strings, or calls resulting in character strings, are taken as providing names of items to be removed as character strings.  
资料被删除。名称取为要删除的对象。字符串,或在字符串中的检测,提供的项目名称被删除字符串。


参数:list
a character string vector providing the names of objects to be removed.  An alternative to ... allowing the user to provide an explicit list of names.  
提供要删除的对象的名称的字符串矢量。 ...允许用户提供一个明确的名称列表的一种替代方法。


参数: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 Remove, the value of the R environment variable R_LOCAL_CACHE, or .R_Cache if unset,  
对于Remove,R环境变量R_LOCAL_CACHE或.R_Cache,如果取消设置的值,

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

For RemoveUtils, the value of the R environment variable R_CENTRAL_UTILS, or .R_Utils if unset.  
对于RemoveUtils,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 Remove, the value of the R environment variable R_LOCAL_LIB_LOC, or the current working directory if unset,  
Remove,R环境变量的值的R_LOCAL_LIB_LOC,或当前的工作目录,如果取消设置,

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


Details

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

Linking the default values of lib and lib.loc to environment variables allows the user to re-set the defaults, if need be, either during startup or in the R session.
链接的默认值lib和lib.loc环境变量允许用户重新设置默认值,如果需要的话,可以在启动过程中或在R届。


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

Nothing.  Used only for side-effects.
什么也没有。仅用于副作用。


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

If the cache is not presently attached to the search path, it is sliently attached at postion 2 before objects are removed from it.
如果缓存没有目前的搜索路径,它是sliently连接对象被删除前,从现在的位置是2。

Old caches made in pre-release versions of SOAR (known as ASOR) will be converted to the present format with a warning that this is happening.  After this conversion only the current version of the package may be used to access the cached objects.
旧高速缓存的预发布版本的SOAR(称为ASOR)将被转换为目前的形式,这是发生警告。这个转换后只对当前版本的包可以用来访问缓存对象。


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



Bill Venables




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



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

rm, remove.
rm,remove。


实例----------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 11:32 , Processed in 0.028904 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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