select_col: A convenient selector gadget

Description Usage Arguments Details Value Examples

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

Description

A convenient selector gadget

Usage

1

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

1
2
3
4
5
6
7
8
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 Nov. 15, 2021, 5:07 p.m.