Learn R Programming

tbltools (version 0.1.0)

pull_data: Pull data

Description

Pull (extract) data from a data frame

Usage

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

Run this code
# NOT RUN {
## pull the 'y' variable from the data frame
tbl_data(x = rnorm(5), y = letters[1:5]) %>% pull_data(y)

# }

Run the code above in your browser using DataLab