Description Usage Arguments Value Examples
Ensure that a vector is the correct length, recycling length-1 inputs if necessary
1 | expand.vec(x, N)
|
x |
vector |
N |
target number of elements |
vector [N]
1 2 3 4 5 6 7 8 9 | expand.vec(1, 5L)
expand.vec(1:5, 5L)
# works with lists
expand.vec(list(1), 3L)
# only recycles length-1 vectors
## Not run: expand.vec(1:3, 5L)
## Not run: expand.vec(1:3, 6L)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.