Re: [R] data frame excerption

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Sun 13 Mar 2005 - 01:29:12 EST

Oleg Bartunov wrote:

> Hello,
>
> is't possible to get excerptions of data frame using some contstraints,
> something like q1 = q[q$V3<1] ?

Yes, but you have to use the indexing matrix-like (see the manuals):

   q1 <- q[q$V3 < 1, ]

Uwe Ligges

>
> Regards,
> Oleg
> _____________________________________________________________
> Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
> Sternberg Astronomical Institute, Moscow University (Russia)
> Internet:
oleg_at_sai.msu.su, http://www.sai.msu.su/~megera/
> phone: +007(095)939-16-83, +007(095)939-23-83
>
> ______________________________________________
> 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



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 Mon Mar 14 09:57:41 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:43 EST