Select columns. To remove columns please see deselect. Also accepts -column notation.

select_se(.data, colNames)

Arguments

.data

data.frame

colNames

character vector of columns to keep

Value

.data with only selected columns

See also

Examples

datasets::mtcars %.>% select_se(., c("cyl", "gear")) %.>% head(.)
#> cyl gear #> Mazda RX4 6 4 #> Mazda RX4 Wag 6 4 #> Datsun 710 4 4 #> Hornet 4 Drive 6 3 #> Hornet Sportabout 8 3 #> Valiant 6 3
# essentially dplyr::select_at() data.frame(a=1, b=2) %.>% select_se(., '-b')
#> a #> 1 1