Output of mutate w/ across gets same *name* as input (#1092)

This commit is contained in:
Mara Averick 2022-09-16 07:30:53 -06:00 committed by GitHub
parent 587e5cd8b5
commit d84c4a3731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ df %>% summarise(
```
The `.names` argument is particularly important when you use `across()` with `mutate()`.
By default the outputs of `across()` are given the same numbers as the inputs.
By default the outputs of `across()` are given the same names as the inputs.
This means that `across()` inside of `mutate()` will replace existing columns:
```{r}