Skip to content
Prev 171602 / 398503 Next

learning R

On Feb 25, 2009, at 12:12 AM, David Winsemius wrote:

            
Would need byrow=TRUE for that to behave as desired.
 > z <- matrix(c(x,y), 2.3, byrow=TRUE)
 > z
      [,1] [,2] [,3]
[1,]    1    2    3
[2,]    3    4    5