Displaying 1 result from an estimated 1 matches for "defgh".
Did you mean:
efgh
2009 Oct 05
1
Characters vs. factors
...des missing values
* strsplit on a factor
> strsplit(factor(c("a", "a b")), " ")
Error in strsplit(factor(c("a", "a b")), " ") : non-character argument
* nchar on a factor:
> nchar(factor(c("abc", "d", "defgh")))
[1] 1 1 1
* : with two character strings
> "a":"b"
Error in "a":"b" : NA/NaN argument
In addition: Warning messages:
1: NAs introduced by coercion
2: NAs introduced by coercion
> factor("a"):factor("b")
[1] a:b
Levels: a:...