diff --git a/factors.qmd b/factors.qmd index b1fa35d..5cc7436 100644 --- a/factors.qmd +++ b/factors.qmd @@ -314,7 +314,7 @@ More powerful than changing the orders of the levels is changing their values. This allows you to clarify labels for publication, and collapse levels for high-level displays. The most general and powerful tool is `fct_recode()`. It allows you to recode, or change, the value of each level. -For example, take the `gss_cat$partyid`: +For example, take the `partyid` variable from the `gss_cat` data frame: ```{r} gss_cat |> count(partyid)