Creating a 2d Array in R
September 3, 2008
Simple, first of all create a variable that contains (n*m) elements
> a = rnorm(100*100, mean=100,sd=1)
then dimension it
> dim(a) = c(1000,10)
where the first parameter is the number of rows, and the second the number of columns. Easy.