Possible Duplicate:
1-dimensional Matrix is changed to a vector in R
I work with matrix
objects in R and many times it happens that I want to select only one column of a matrix a use it as a matrix
of one column !!! Yes, I mean I don't want R to coerce it automatically to a numeric
class because the meaning is a matrix of 1 column in that case. How to avoid R doing this silly conversion all the time at a general level. I don't want to clutter my code with as.matrix
everywhere !