r - Convert a matrix to a 1 dimensional array -


i have matrix (32x48).

how can convert matrix single dimensional array?

if we're talking data.frame, should ask variables of same type? if that's case, can use rapply, or unlist, since data.frames lists, deep down in souls...

 data(mtcars)  unlist(mtcars)  rapply(mtcars, c) # stupid , pointless, , slower 

Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -