Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

Arguments

.data

data.frame

col

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

Value

vector

See Also

Examples

mtcars %>% pull_dt(2)
mtcars %>% pull_dt(cyl)
mtcars %>% pull_dt("cyl")

tidyfst

Tidy Verbs for Fast Data Manipulation

v0.9.9
MIT + file LICENSE
Authors
Tian-Yuan Huang [aut, cre] (<https://orcid.org/0000-0002-3591-4203>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.