select: Select columns from a Crunch dataset

selectR Documentation

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 class 'CrunchDataset'
select(.data, ...)

Arguments

.data

A CrunchDataset

...

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

Value

.data with only the selected variables.

Examples

## Not run: 
ds %>%
   select(contains("ear")) %>%
   filter(gear > 4) %>%
   collect()

## End(Not run)

crplyr documentation built on March 31, 2023, 9:30 p.m.