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