Learn R Programming

tidyft (version 0.9.20)

pull: Pull out a single variable

Description

Analogous function for pull in dplyr

Usage

pull(.data, col)

Value

A vector

Arguments

.data

data.frame

col

A name of column or index (should be positive).

See Also

Examples

Run this code
mtcars %>% pull(2)
mtcars %>% pull(cyl)
mtcars %>% pull("cyl")

Run the code above in your browser using DataLab