search for: newcolnumber

Displaying 1 result from an estimated 1 matches for "newcolnumber".

2002 Jun 12
5
How to stack the columns of matrix
Dear all, I need to stack the columns of a matrix with a variable number of columns. I am aware of new<-c(a[,1],a[,2]) if I have a matrix 'a' with e.g. two columns. For a simulation study I need to stack the matrix with a variable number of columns. Is there a way to do this? Many thanks in advance Peter