Displaying 1 result from an estimated 1 matches for "c_as".
Did you mean:
_as
2000 Feb 08
1
fix() changes character to factor (PR#415)
If x is a data.frame containing a column of mode character, this
column is changed to a factor after applying fix(x).
Example:
R> x_data.frame(a=1:3,b=letters[1:3],c=c("hansi","pepi","karli"))
R> x$c_as.character(x$c)
R> is.character(x$c)
[1] TRUE
R> is.factor(x$c)
[1] FALSE
R> fix(x)
## I change "karli" to "sepp"
R> x$c
[1] hansi pepi sepp
Levels: hansi pepi sepp
R> is.character(x$c)
[1] FALSE
R> is.factor(x$c)
[1] TRUE
Now, it is not possible to apply...