create matrix in row-major fashion in R -


i able create matrix in r using below line of code

> = matrix(c(0:9),ncol=5,nrow=2) >      [,1] [,2] [,3] [,4] [,5] [1,]    0    2    4    6    8 [2,]    1    3    5    7    9 

however, matrix created in row-major fashion. is, matrix looks follows

>      [,1] [,2] [,3] [,4] [,5] [1,]    0    1    2    3    4 [2,]    5    6    7    8    9 

how can this?


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -