It is natural to use the same function as the previous code chunk. (#1492)
This commit is contained in:
@@ -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")
|
||||
)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user