readr icon indicating copy to clipboard operation
readr copied to clipboard

Document parse_factor produces different levels than base factor

Open jxu opened this issue 2 years ago • 0 comments

This is specified in parse_factor docs on the level argument, but maybe worth emphasizing that the levels produced will be different than base R factor, which does it by sorting.

parse_factor(c("b", "a"))
factor(c("b", "a"))

jxu avatar Oct 18 '23 16:10 jxu