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() -

c# - Making TableLayoutPanel Act Like An HTML Table (Cells That Resize Automatically Around Text) -