Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
fct_explicit_na deprecated using fct_na_value_to_level instead
Browse files Browse the repository at this point in the history
Forcats 1.0.0 depreciated `fct_explicit_na`
Equivalent way is now `fct_na_value_to_level(sex, "(Missing)")`

Fixes/addresses #11
  • Loading branch information
murraycadzow authored May 22, 2024
1 parent 5071a53 commit 15ac370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion episodes/how-r-thinks-about-data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ fct_relevel(sex, c("male", "female"))
fct_recode(sex, "M" = "male", "F" = "female")
# turn NAs into an actual factor level (useful for including NAs in plots)
fct_explicit_na(sex)
fct_na_value_to_level(sex, "(Missing)")
```

Expand Down

0 comments on commit 15ac370

Please sign in to comment.