ns-topenv(base)
ns-topenv()所属R语言包:base
Top Level Environment
顶级环境
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Finding the top level environment.
寻找顶级的环境。
用法----------Usage----------
topenv(envir = parent.frame(),
matchThisEnv = getOption("topLevelEnvironment"))
参数----------Arguments----------
参数:envir
environment.
环境。
参数:matchThisEnv
return this environment, if it matches before any other criterion is satisfied. The default, the option topLevelEnvironment, is set by sys.source, which treats a specific environment as the top level environment. Supplying the argument as NULL means it will never match.
回到这种环境下,如果它匹配之前,任何其他标准是满意的。默认情况下,选项topLevelEnvironment设置为sys.source,顶级环境视为一个特定的环境。供应参数NULL“意味着它永远不会匹配。
Details
详情----------Details----------
topenv returns the first top level environment found when searching envir and its enclosing environments. An environment is considered top level if it is the internal environment of a namespace, a package environment in the search path, or .GlobalEnv.
topenv返回第一的顶级搜索时envir和其封闭的环境中发现的环境。环境被认为是最高水平,如果它是一个命名空间,在搜索路径中的包环境,或.GlobalEnv的内部环境。
举例----------Examples----------
topenv(.GlobalEnv)
topenv(new.env())
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|