You should not use the system object `c' as an index! BTW, expression()
takes multiple arguments, so you can do
# OK
for (c2 in expression(x$a==1, x$b==1, x$c==1)) print(x[eval(c2),])
for (c2 in expression(x$a==1, x$b==1, x$c==1)) print(subset(x, eval(c2)))
# error, correctly
for (c2 in expressio
Full_Name: Martin Lenze
Version: Version 1.9.0 (2004-04-12), ISBN 3-900051-00-3
OS: Microsoft Windows 2000 [Version 5.00.2195] SP4
Submission from: (NULL) (82.83.167.79)
Hello,
now I switched to R 1.9.0 and did get a problem with subset, see sample:
x <- data.frame(a=as.integer(round(runif(5),