It is natural to use the same function as the previous code chunk. (#1492)

This commit is contained in:
Mitsuo Shiota 2023-11-09 12:11:21 +09:00 committed by GitHub
parent e542450760
commit 6b90ffda93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ If you'd like to instead create new columns, you can use the `.names` argument t
```{r} ```{r}
df_miss |> df_miss |>
mutate( mutate(
across(a:d, \(x) abs(x), .names = "{.col}_abs") across(a:d, \(x) coalesce(x, 0), .names = "{.col}_na_zero")
) )
``` ```