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++ - Convert big endian to little endian when reading from a binary file -

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

unicode - Are email addresses allowed to contain non-alphanumeric characters? -