Returns the environment at a specified position in the search path.
an integer between
Several R functions for manipulating objects in environments (such as
ls) allow specifying environments
via corresponding positions in the search path.
a convenience function for programmers which converts these positions
to corresponding environments; users will typically have no need for
it. It is primitive.
-1 is interpreted as the environment the function is called
This is a primitive function.
pos.to.env(1) # R_GlobalEnv # the next returns the base environment pos.to.env(length(search()))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.