row_counts: Build an optree pipeline counts rows.

View source: R/row_counts.R

row_countsR Documentation

Build an optree pipeline counts rows.

Description

This is an example of building up a desired pre-prepared pipeline fragment from relop nodes.

Usage

row_counts(source, ..., groupby = character(0), env = parent.frame())

Arguments

source

relop tree or data.frame source.

...

force later arguments to bind by name.

groupby

partitioning (window function) column names.

env

environment to look for values in.

Examples


# by hand logistic regression example
d <- mk_td("survey_table",
           c("subjectID", "surveyCategory", "assessmentTotal"))
optree <- d %.>%
  row_counts(., groupby = "subjectID")
cat(format(optree))


WinVector/rquery documentation built on Aug. 24, 2023, 11:12 a.m.