View source: R/recycle_vector.R
| recycle_vectors | R Documentation |
Repeats all vectors of a list .x to the length of the longest vector
using rep() with argument length.out.
This operation will only work
if the length of the longest vectors is an integer multiple of all shorter
vectors, and will throw an exception otherwise.
recycle_vectors(.x)
.x |
( |
(list()) with vectors of same size.
recycle_vectors(list(a = 1:3, b = 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.