| pos.to.env | R Documentation |
Returns the environment at a specified position in the search path.
pos.to.env(x)
x | an integer between |
SeveralR functions for manipulating objects in environments (such asget andls) allow specifying environmentsvia corresponding positions in the search path.pos.to.env isa convenience function for programmers which converts these positionsto corresponding environments; users will typically have no need forit. It is primitive.
-1 is interpreted as the environment the function is calledfrom.
This is a primitive function.
pos.to.env(1) # R_GlobalEnv# the next returns the base environmentpos.to.env(length(search()))
Add the following code to your website.
For more information on customizing the embed code, readEmbedding Snippets.
