get_col: Extract column from dataset

Description Usage Arguments Details See Also Examples

View source: R/tools.R

Description

This function extracts the column of a dataset irrespective of whether the column is called by its quoted name, its non quotted name, or through an object.

Usage

1
get_col(.data, col)

Arguments

.data

A data.frame or tbl

col

A column name

Details

This function allow for writing code as if everything was relying on non-standard evaluation (i.e. in the tidyverse style). It is inspired from pull()

See Also

get_colname()

Examples

1
2
get_col(iris, "Sepal.Length")
get_col(iris, Sepal.Length)

courtiol/dfuzz documentation built on Oct. 28, 2020, 6 a.m.