Skip to content
Prev 15724 / 398500 Next

subset error message

Shravan Vasishth wrote:
The reason for the error is what R tells you: V1 is a factor (and not
numeric) and therefore ">" is not meaningful.
If V1 is not a factor you should change it to a numeric vector and use
the command above. Or you could do something like
  subset(foo, levels(V1) > 5)
which should give the desired result.
Z
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._