Recycle List of Vectors to Common Length
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))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.