Hello,
Try the following.
ix <- with(dataset, TAG.ID %in% 12:20 | TAG.ID %in% 192:212)
dataset[ix, ]
or
ix <- with(dataset, (12 <= TAG.ID & TAG.ID <=20) | (192 <= TAG.ID &
TAG.ID <= 212))
if the variable is not integer.
Also, read the manual, this, index vectors, is there. (R-intro.pdf).
Hope this helps,
Rui Barradas
Em 24-06-2012 13:31, bdossman escreveu:
______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide
http://www.R-project.org/posting-guide.htmland provide commented, minimal, self-contained, reproducible code.