Search by name for an object (get) or zero or more objects (mget).
get(x, pos = -1, envir = as.environment(pos), mode = "any",
inherits = TRUE)<p></p><p>mget(x, envir = as.environment(-1), mode = "any", ifnotfound,
inherits = FALSE)</p><p>dynGet(x, ifnotfound = , minframe = 1L, inherits = FALSE)</p>
| Parameter | Description |
|---|---|
x |
For get, an object name (given as a character string). For mget, a character vector of object names. |
pos, envir |
where to look for the object (see ‘Details’); if omitted search as if the name of the object appeared unquoted in an expression. |
mode |
the mode or type of object sought: see the ‘Details’ section. |
inherits |
should the enclosing frames of the environment be searched? |
ifnotfound |
For mget, a list of values to be used if the item is not found: it will be coerced to a list if necessary. For dynGet any R object, e.g., a call to stop(). |
minframe |
integer specifying the minimal frame number to look into. |
# NOT RUN {
get("%o%")
## test mget
e1 <- new.env()
mget(letters, e1, ifnotfound = as.list(LETTERS))
# }