diff --git a/iteration.qmd b/iteration.qmd index 1fc133a..9c05c19 100644 --- a/iteration.qmd +++ b/iteration.qmd @@ -261,7 +261,7 @@ If you'd like to instead create new columns, you can use the `.names` argument t ```{r} df_miss |> mutate( - across(a:d, \(x) abs(x), .names = "{.col}_abs") + across(a:d, \(x) coalesce(x, 0), .names = "{.col}_na_zero") ) ```