qt_rollup: Dimensional rollup query pattern

View source: R/qt.R

qt_rollupR Documentation

Dimensional rollup query pattern

Description

Produces a query that performs a rollup operation on a cube-like table.

Usage

qt_rollup(dimensions, metrics, table_name, where = NULL, order_by = dimensions)

Arguments

dimensions

dimensions to roll up by

metrics

aggregations that will be performed on each dimension

table_name

table to query

where

constraints

order_by

order by

Value

a query

Examples

qt_rollup(
  c(order_date = "date", "country"), 
  c(sales = "sum(sales)"), 
  'metrics_table'
  )

colin-fraser/queries documentation built on April 14, 2022, 2:12 p.m.