Learn R Programming

tidyfst (version 1.8.1)

pull_dt: Pull out a single variable

Description

Extract vector from data.frame, works likt `[[`. Analogous function for pull in dplyr

Usage

pull_dt(.data, col)

Value

vector

Arguments

.data

data.frame

col

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

See Also

Examples

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

Run the code above in your browser using DataLab