powered by
col_vec
n
Concatenate col_vec columnwise n times
concatenate_col(col_vec, n)
a vector to copy/concatenate
number of times to concatenate (number of columns)
A matrix where col_vec is concatenated n times along the column axis.
# NOT RUN { vec_to_concat <- seq(10) n <- 5 concatenate_col(vec_to_concat, n) # (10, 5) matrix created # }
Run the code above in your browser using DataLab