Skip to content

Discrepancy between vignette text and plots #379

@zmbc

Description

@zmbc

From https://forcats.tidyverse.org/articles/forcats.html:

Image
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:
Image

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions