2008/11/13 Reitsma, Rene - COB <[EMAIL PROTECTED]>:

>>subset(foo, c1 > 1 && c2 > 5)
> [1] c1 c2 c3
> <0 rows> (or 0-length row.names)

 Too many ampersands:

> subset(foo, c1 > 1 & c2 > 5)
   c1 c2 c3
r3  3  6  9

See help("&")

Barry

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to