Skip to content
Prev 273476 / 398506 Next

Populate a matrix

m <- matrix( rep( y, length( x ) ), length( y ), length( x ) )
On Wednesday 05 October 2011 18:11:18 fernando.cabrera at nordea.com wrote:
columns (length(x)), and each row is the corresponding y element repeated length(x) times.