Description Usage Arguments Details Value Author(s) See Also Examples
Recycle the elements in x
to make a vector that has length N
.
1 | recycle(x, N)
|
x |
A vector of length >= 1 |
N |
The desired length of the result. Should be >= 2. |
Typical usages are:
1 2 |
If length(x) == 1
then this is equivalent to
rep(x)
. N
does not have to be an even number of multiples of
length(x)
.
A vector of length N, with elements made up by repeating x as many times as necessary.
Mark Cowley, 9 Nov 2005
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.