Hi,

I have an array and I want to put in into a matrix x number of times. Currently 
I doing this

matrix <- cbind(array, array, array).

Is there a more elegant way of doing this?

I've tried

matrix <- cbind(rep(array, times=x)) and matrix <- rep(cbind(array), times = 5)

but it didn't work.

Thanks.
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to