Pick now in dplyr

This commit is contained in:
Hadley Wickham 2022-11-04 11:43:30 -05:00
parent c7c2398d58
commit 331586da6f
2 changed files with 0 additions and 16 deletions

View File

@ -41,14 +41,6 @@ library(tidyverse)
library(nycflights13)
```
This chapter also relies on a function that hasn't yet been implemented for dplyr but will be by the time the book is out:
```{r}
pick <- function(cols) {
across({{ cols }})
}
```
## Vector functions
We'll begin with vector functions: functions that take one or more vectors and return a vector result.

View File

@ -38,14 +38,6 @@ We're going to use just a couple of purrr functions from in this chapter, but it
library(tidyverse)
```
This chapter also relies on a function that hasn't yet been implemented for dplyr but will be by the time the book is out:
```{r}
pick <- function(cols) {
across({{ cols }})
}
```
## Modifying multiple columns {#sec-across}
Imagine you have this simple tibble: