select_col: A convenient selector gadget

View source: R/select_col.R View source: R/select_col.R

select_colR Documentation

A convenient selector gadget

Description

A convenient selector gadget

Usage

select_col(df, ...)

Arguments

df

The data set from which to select a column

...

columns to select, no quotes

Details

A friendly way to select a column or several columns. Mainly for non-pipe usage It is recommended to use known select functions to do pipe manipulations. Otherwise convert to tibble

Value

Returns a dataframe with selected columns

Examples

select_col(yields,height,weight,normal)
# A pipe friendly example
## Not run: 
library(dplyr)
as_tibble(yields) %>%
select_col(height, weight, normal)

## End(Not run)

manymodelr documentation built on April 4, 2025, 12:01 a.m.