[R] multiple selection syntax

Douglas Bates bates at stat.wisc.edu
Mon Sep 8 19:49:21 CEST 2003

anne <anne.piotet at urbanet.ch> writes:

> Hello
> This is a very newbie question on R syntax, but I do not find the answer....
> I want to make a selection on an interval say choose Xint in the
> interval of temperatures 390-399
> I tried this syntax
> Xint<- X[t>=390 && t< 400] typing >XintI get the answer numeric(0)

Use &, not &&

More information about the R-help mailing list