Re: [R] matrix selection return types

From: <vincent_at_7d4.com>
Date: Fri 16 Jun 2006 - 23:07:07 EST

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.



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jun 16 23:09:21 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 17 Jun 2006 - 00:11:39 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.