Description Usage Arguments See Also Examples
These methods allow the user to manipulate any Bimap object as if it was an environment. This environment-like API is provided for backward compatibility with the traditional environment-based maps.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ls(name, pos = -1L, envir = as.environment(pos), all.names = FALSE,
pattern, sorted = TRUE)
exists(x, where, envir, frame, mode, inherits)
get(x, pos, envir, mode, inherits)
#x[[i]]
#x$name
## Converting to a list
mget(x, envir, mode, ifnotfound, inherits)
eapply(env, FUN, ..., all.names, USE.NAMES)
#contents(object, all.names)
## Additional convenience method
sample(x, size, replace=FALSE, prob=NULL, ...)
|
name |
A Bimap object for |
pos, all.names, USE.NAMES, where, frame, mode, inherits |
Ignored. |
envir |
Ignored for |
pattern |
An optional regular expression. Only keys matching 'pattern' are returned. |
x |
The key(s) to search for for |
i |
Single key specifying the map element to extract. |
ifnotfound |
A value to be used if the key is not found. Only |
env |
A Bimap object. |
FUN |
The function to be applied (see original |
... |
Optional arguments to |
size |
Non-negative integer giving the number of map elements to choose. |
replace |
Should sampling be with replacement? |
prob |
A vector of probability weights for obtaining the elements of the map being sampled. |
sorted |
|
ls
,
exists
,
get
,
mget
,
eapply
,
contents
,
sample
,
BimapFormatting,
Bimap
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.