search for: _level_

Displaying 1 result from an estimated 1 matches for "_level_".

Did you mean: _level0
1999 Dec 01
1
odd result of length() with factor arguments with NA (PR#354)
The following looks odd to me, but it may well be that I'm doing something I shouldn't: x <- c(rep("a",5),NA,rep("b",7)) X <- as.factor(x) length(X) # [1] 13 length(X[X=="a"]) # [1] 6 I expected 5 length(X[X=="b"]) # [1] 8 I expected 7 length(X[is.na(X)]) # [1] 1 yes length(X[X=="d"]) # [1]