AggFunc: Function for making the AggByYear and AggByAge functions.

View source: R/getIncidence.R

AggFuncR Documentation

Function for making the AggByYear and AggByAge functions.

Description

A function factory for creating specific AggByFuncs, see for example AggByYear. This function is a closure and so returns another function.

Usage

AggFunc(RHS)

Arguments

RHS

The variable name as string that you want to aggregate by.

Value

function

Examples

AggByYear <- AggFunc("Year")

vando026/ahri documentation built on Aug. 10, 2024, 3:20 p.m.