This function brings a Crunch dataset into memory so that you can work with the data using R functions. Since this can create a long running query it is recommended that you try to filter the dataset down as much as possible before running collect().

# S3 method for CrunchDataset
collect(x, ...)

# S3 method for GroupedCrunchDataset
collect(x, ...)

Arguments

x

A Crunch Dataset

...

Other arguments passed to crunch::as.data.frame()

Value

A tbl_df or grouped_df

Details

When collecting a grouped CrunchDataset, the grouping will be preserved.

Examples

if (FALSE) { ds %>% group_by(cyl) %>% select(cyl, gear) %>% collect() }