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

R语言:getAnywhere()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 20:18:59 | 显示全部楼层 |阅读模式
getAnywhere(utils)
getAnywhere()所属R语言包:utils

                                        Retrieve an R Object, Including from a Namespace
                                         检索一个R对象,包括命名空间

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

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

These functions locate all objects with name matching their argument, whether visible on the search path, registered as an S3 method or in a namespace but not exported. getAnywhere() returns the objects and argsAnywhere() returns the arguments of any objects that are functions.
找到这些功能的所有对象的名称匹配他们的论点,是否在搜索路径中可见,作为S3在一个命名空间的方法或注册,但没有出口。 getAnywhere()返回的对象和argsAnywhere()返回任何对象功能的论据。


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


getAnywhere(x)
argsAnywhere(x)



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

参数:x
a character string or name.
字符串或名称。


Details

详情----------Details----------

The functions look at all loaded namespaces, whether or not they are associated with a package on the search list.  
看所有加载的命名空间,不论是否包上搜索列表的功能。

The functions do not search literally “anywhere”: for example, local evaluation frames and namespaces that are not loaded will not be searched.
的功能并不字面意思是“随时随地”:例如,当地的评估框架和未加载的命名空间不会被搜查。

Where functions are found as an S3 method, an attempt is made to find which namespace registered them.  This may not be correct, especially if a namespace is unloaded.
凡发现功能作为S3方法,试图找到它的命名空间注册他们。这可能是不正确的,特别是如果一个命名空间被卸载。


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

For getAnywhere() an object of class "getAnywhere".  This is a list with components
getAnywhere()类对象"getAnywhere"。这是一个组件列表


参数:name
the name searched for.
名称搜索。


参数:objs
a list of objects found
找到的对象列表


参数:where
a character vector explaining where the object(s) were found
一个字符向量,解释的对象(S)被发现


参数:visible
logical: is the object visible
逻辑:是对象可见


参数:dups
logical: is the object identical to one earlier in the list.
逻辑:是一个较早列表中相同的对象。

Normally the structure will be hidden by the print method. There is a [ method to extract one or more of the objects found.
通常情况下,结构将隐藏print方法。有[方法来提取一个或多个发现的对象。

For argsAnywhere() one or more argument lists as returned by args.
argsAnywhere()一个或多个参数,如args返回的列表。


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

get,  getFromNamespace, args
get,getFromNamespace,args


举例----------Examples----------


getAnywhere("format.dist")
getAnywhere("simpleLoess") # not exported from stats[从统计资料不出口]
argsAnywhere(format.dist)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-6 16:46 , Processed in 0.028929 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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