stringx icon indicating copy to clipboard operation
stringx copied to clipboard

There should be a different as.character.factor

Open gagolews opened this issue 2 years ago • 0 comments

So that at least the names attribute is preserved:

> as.character(as.factor(c(a=1, b=2)))
[1] "1" "2"
> as.factor(c(a=1, b=2))
a b 
1 2 
Levels: 1 2

gagolews avatar Aug 27 '21 06:08 gagolews