parent
952d1ab4f0
commit
5d96dd41b9
|
@ -324,7 +324,7 @@ See `?select` for more details.
|
||||||
Instead, use `rename()`, which is a variant of `select()` that keeps all the variables that aren't explicitly mentioned:
|
Instead, use `rename()`, which is a variant of `select()` that keeps all the variables that aren't explicitly mentioned:
|
||||||
|
|
||||||
```{r}
|
```{r}
|
||||||
rename(flights, tail_num = tailnum)
|
rename(flights, tailnum = tail_num)
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to move certain variables to the start of the data frame but not drop the others, you can do this in two ways: using `select()` in conjunction with the `everything()` helper or using `relocate()`.
|
If you want to move certain variables to the start of the data frame but not drop the others, you can do this in two ways: using `select()` in conjunction with the `everything()` helper or using `relocate()`.
|
||||||
|
|
Loading…
Reference in New Issue