From 1795c9485584041f812e49de96e57ea100f1c39f Mon Sep 17 00:00:00 2001 From: Mitsuo Shiota <48662507+mitsuoxv@users.noreply.github.com> Date: Tue, 9 Feb 2021 22:25:34 +0900 Subject: [PATCH] Fix fct_lump example (#918) * happen to have "Other" in factor levels * rescind code change, instead add comments * make an exercise --- factors.Rmd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/factors.Rmd b/factors.Rmd index 3fd38aa..c48dacd 100644 --- a/factors.Rmd +++ b/factors.Rmd @@ -329,3 +329,5 @@ gss_cat %>% Independent changed over time? 1. How could you collapse `rincome` into a small set of categories? + +1. Notice there are 9 groups (excluding other) in the `fct_lump` example above. Why not 10? (Hint: type `?fct_lump`, and find the default for the argument `other_level` is "Other".)