I get this error:
Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed
I used this:
var <- ifelse(test$operator == 'T14', 1, 0)
operator has several values like T1, T3, T7, T15, T31, T37
For some values like T3, T7 it works fine but for majority of values it
gives error.
When I use: is.na(ts$operator), it shows all false values so no NAs.
Where could be the problem?
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
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.