-
Notifications
You must be signed in to change notification settings - Fork 131
Closed
Labels
documentationtidy-dev-day 🤓Tidyverse Developer Day rstd.io/tidy-dev-dayTidyverse Developer Day rstd.io/tidy-dev-day
Description
From https://forcats.tidyverse.org/articles/forcats.html:
Note that fct_infreq() it automatically puts NA at the top, even though that doesn’t have the smallest number of entries.
[...]
To fix the issue above, we can use fct_na_value_to_level() to convert the NA in the value to an NA in the levels. Then they appear where you’d expect:
These images both have the NAs in the same place, but based on the text I expect the second graph was supposed to show them moved to not be at the top.
Metadata
Metadata
Assignees
Labels
documentationtidy-dev-day 🤓Tidyverse Developer Day rstd.io/tidy-dev-dayTidyverse Developer Day rstd.io/tidy-dev-day