On May 26, 2010, at 11:58 AM, <mau...@alice.it> <mau...@alice.it> wrote:

I am assigning subset of a matrix A [n,3] where n>1 to a temporary matrix TMP I do not know how many rows of A will be assigned to TMP because this is established by a
run-time test.
I expect TMP to be a matrix [m,3], m >=1
But when 1 row only is transferred from A to TMP then TMP becomes [3,1]

Actually it becomes a vector. Look at it with str or is.matrix.


rather than [1,3]
How can I avoid this unwanted transpose operation ?

drop=FALSE


THank you in advance,
Maura



David Winsemius, MD
West Hartford, CT

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to