[R] Dataframe help

From: Rajasekaramya <ramya.victory_at_gmail.com>
Date: Wed, 05 Nov 2008 08:03:48 -0800 (PST)

Hi there,

I have a dataframe length.unique.info
> length.unique.info

abc 12 345
def 16 550
lmn 6 600
I want those names that fall under the condition (length.unique.info[,2][i] <=5 && length.unique.info[,3][i] >=500)

abcder<-length.unique.info[which(length.unique.info[,2][i] <=5 && length.unique.info[,3][i] >= 500),1]

will "&&" look for both the condition.It isnt returning names is there anything i am missing.Kindly suggest me the way to do it.


View this message in context: http://www.nabble.com/Dataframe-help-tp20343288p20343288.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 05 Nov 2008 - 16:06:53 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 21 Dec 2008 - 16:30:33 GMT.

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

list of date sections of archive