[R] Re : Dataframe help
Olivier ETERRADOSSI
Olivier.Eterradossi at ema.fr
Thu Nov 6 16:49:33 CET 2008
Hi Ramya,
Sorry if I missed something, but unless I have problems reading your
message it seems that there is no line in your example matching both
your test conditions...
Hope this helps. Olivier
> 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.
>
> Regards
> Ramya
--
Olivier ETERRADOSSI
Maître-Assistant
CMGD / Equipe "Propriétés Psycho-Sensorielles des Matériaux"
Ecole des Mines d'Alès
Hélioparc, 2 av. P. Angot, F-64053 PAU CEDEX 9
tel std: +33 (0)5.59.30.54.25
tel direct: +33 (0)5.59.30.90.35
fax: +33 (0)5.59.30.63.68
http://www.ema.fr
More information about the R-help
mailing list