[R] matrix selection return types

vincent at 7d4.com vincent at 7d4.com
Fri Jun 16 15:07:07 CEST 2006


jim holtman a écrit :

>  > z1 <- m[m[,1] == 2,, drop=FALSE]
> What is the problem you are trying to solve?

It was not really a big problem.
Just that without the "drop" argument,
The changing returned type complicated
the next computations.
drop=TRUE makes it homogeneous, which is what I needed.

Thanks for your answer.



More information about the R-help mailing list