R: watch out when comparing vectors using “==”
Friday, September 25th, 2009This question was on the R-help mailing list today:
I have a data frame “test”:
test rep(7,length.out=length(test$total))
[1] 7 7 7 7 7 7 7 7
will do just fine.
To get the help text on %in% by the way, you need to quote it:
?”%in%”