Output of mutate w/ across gets same *name* as input (#1092)
This commit is contained in:
parent
587e5cd8b5
commit
d84c4a3731
|
@ -198,7 +198,7 @@ df %>% summarise(
|
||||||
```
|
```
|
||||||
|
|
||||||
The `.names` argument is particularly important when you use `across()` with `mutate()`.
|
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:
|
This means that `across()` inside of `mutate()` will replace existing columns:
|
||||||
|
|
||||||
```{r}
|
```{r}
|
||||||
|
|
Loading…
Reference in New Issue