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

List<T>().Add problem C# -

Javascript natural sort array/object and maintain index association -