Skip to contents

Extend a vector to have a given (`len_out`) length by repeating elements using the `each` functionality of `rep()`

Usage

rep_each_len(v, len_out)

Arguments

v

input vector to extend

len_out

the desired final length of the vector