Convert Positions in the Search Path to Environments
在搜索路径对环境的转换位置
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Returns the environment at a specified position in the search path.
返回在指定的位置在搜索路径环境。
用法----------Usage----------
参数----------Arguments----------
参数:x
an integer between 1 and length(search()), the length of the search path.
一个整数,介于1和length(search()),搜索路径的长度。
Details
详情----------Details----------
Several R functions for manipulating objects in environments (such as get and ls) allow specifying environments via corresponding positions in the search path. pos.to.env is a convenience function for programmers which converts these positions to corresponding environments; users will typically have no need for it. It is primitive.
操作环境中的物体的几个R功能(如get和ls),允许通过相应的位置在搜索路径中指定的环境。 pos.to.env是为方便程序员,这些职位转换到相应的环境功能;用户通常没有它的需要。这是原始的。
举例----------Examples----------
pos.to.env(1) # R_GlobalEnv[R_GlobalEnv]
# the next returns the base environment[下返回基地环境]
pos.to.env(length(search()))