Pull (extract) data from a data frame

pull_data(.data, ...)

Arguments

.data

Input data frame

...

Unquoted name of column to pull from data frame

Value

A column pulled from its data frame (inheriting whatever class the column is)

Examples

## pull the 'y' variable from the data frame tbl_data(x = rnorm(5), y = letters[1:5]) %>% pull_data(y)
#> [1] "a" "b" "c" "d" "e"