pull: Extract a single column from a data frame (including tbl_df)...

View source: R/utils.R

pullR Documentation

Extract a single column from a data frame (including tbl_df) and return it as a vector.

Description

Extract a single column from a data frame (including tbl_df) and return it as a vector.

Usage

pull(data, Var)

Arguments

data

a data frame to extract the column from.

Var

a character string identifying the column to extract as a vector.

Value

a vector

Source

Modified from Tommy O'Dell: http://stackoverflow.com/a/24730843/1705044


nyu-mhealth/Mobility documentation built on July 4, 2025, 9:54 a.m.