powered by
Repeat a vector until it matches the length of another vector
rep_along(x, along.with)
Vector to be repeated
Vector whose length to match
A vector of same type as x
# NOT RUN { rep_along(1:4,letters) # }
Run the code above in your browser using DataLab