This is an example of building up a desired pre-prepared pipeline fragment from relop nodes.
row_counts(source, ..., groupby = character(0), env = parent.frame())
relop tree or data.frame source.
force later arguments to bind by name.
partitioning (window function) column names.
environment to look for values in.
# by hand logistic regression example
d <- mk_td("survey_table",
c("subjectID", "surveyCategory", "assessmentTotal"))
optree <- d %.>%
row_counts(., groupby = "subjectID")
cat(format(optree))
#> mk_td("survey_table", c(
#> "subjectID",
#> "surveyCategory",
#> "assessmentTotal")) %.>%
#> extend(.,
#> one := 1) %.>%
#> project(., n := sum(one),
#> groupby = c('subjectID'))