I have a matrix (32X48).
How can I convert the matrix into a single dimensional array?
If you instead had a data.frame (df) that had multiple columns and you want to vectorize you can do
as.matrix(df, ncol=1)