Skip to contents

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

if (FALSE) { # \dontrun{
galah_call() |> 
  group_by(basisOfRecord) |>
  counts() |>
  collect()
} # }