ensureVector | R Documentation |
Useful for standard argument conversion where a user can input a single element, but this has to be replicated now n times for a resulting vector or list.
ensureVector(x, n = 1L, cl = NULL, names = NULL, ensure.list = FALSE)
x |
[any] |
n |
[ |
cl |
[ |
names |
[ |
ensure.list |
[ |
Ether a vector or list of length n
with replicated x
or x
unchanged..
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.