Returns the environment at a specified position in the search path.
pos.to.env(x)
| Parameter | Description |
|---|---|
x |
an integer between 1 and length(search()), the length of the search path, or -1. |
# NOT RUN {
pos.to.env(1) # R_GlobalEnv
# the next returns the base environment
pos.to.env(length(search()))
# }