[R] Error in if (fraction <= 1) { : missing value where TRUE/FALSE needed
javed khan
j@vedbtk111 @end|ng |rom gm@||@com
Wed Jan 26 14:47:16 CET 2022
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]]
More information about the R-help
mailing list