group_by.data_request {galah}R Documentation

Group by one or more variables

Description

Most data operations are done on groups defined by variables. group_by() takes a query and adds a grouping variable that can be used in combination with count() to give information on number of occurrences per level of that variable.

Usage

## S3 method for class 'data_request'
group_by(.data, ...)

galah_group_by(...)

Arguments

.data

An object of class data_request

...

Zero or more individual column names to include

Value

If any arguments are provided, returns a data.frame with columns name and type, as per select.data_request().

Examples

## Not run: 
galah_call() |> 
  group_by(basisOfRecord) |>
  counts() |>
  collect()

## End(Not run)

[Package galah version 2.1.0 Index]