From 40d7bcb5d0b59751bc7819a619a5a6becd722ff8 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Sun, 18 Apr 2021 15:57:30 -0500 Subject: [PATCH] Fix thinko --- data-transform.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data-transform.Rmd b/data-transform.Rmd index 2aab1ea..e3477a0 100644 --- a/data-transform.Rmd +++ b/data-transform.Rmd @@ -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: ```{r} -rename(flights, tailnum = tail_num) +rename(flights, tail_num = tailnum) ``` 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()`.