Skip to content

Commit

Permalink
It is natural to use the same function as the previous code chunk. (h…
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuoxv authored Nov 9, 2023
1 parent e542450 commit 6b90ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iteration.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -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")
)
```

Expand Down

0 comments on commit 6b90ffd

Please sign in to comment.