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

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

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

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