What do you think?
This is covered in the Introduction to R document that comes with R.
Sent from my phone. Please excuse my brevity.
On September 19, 2016 8:37:30 PM PDT, John <miao...@gmail.com> wrote:
> I have the following dataframe:
>> temp<-data.frame(a=c(1,1,2), b=2:4, c=1:3)
>> row.names(temp)<-c("D", "E", "F")
> a b c
>D 1 2 1
>E 1 3 2
>F 2 4 3
> I would like R to tell me which rows has value "a" equal to 1. The
>answer is the first row and the second row, or row D and row E. Which
>function should i use? function subset? function which?
> [[alternative HTML version deleted]]
>Rfirstname.lastname@example.org mailing list -- To UNSUBSCRIBE and more, see
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.
Remail@example.com mailing list -- To UNSUBSCRIBE and more, see
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.