crplyr (version 0.4.0)

select: Select columns from a Crunch dataset

Description

This function uses "tidy select" methods of subsetting the columns of a dataset. It's another way of doing ds[,vars].

Usage

# S3 method for CrunchDataset
select(.data, ...)

Value

.data with only the selected variables.

Arguments

.data

A CrunchDataset

...

names of variables in .data or other valid selection functions, passed to tidyselect::vars_select()

Examples

Run this code
if (FALSE) {
ds %>%
   select(contains("ear")) %>%
   filter(gear > 4) %>%
   collect()
}

Run the code above in your browser using DataLab