agg_all: Aggregation function

Description Usage Arguments Details See Also Examples

Description

This function is intended to be used with sim_agg and not interactively. This is one implementation for aggregating data in a simulation set-up.

Usage

1
agg_all(groupVars = "idD")

Arguments

groupVars

variable names as character identifying groups to be aggregated.

Details

This function follows the split-apply-combine idiom. Each data set is split by the defined variables. Then the variables within each subset are aggregated (reduced to one row). Logical variables are reduced by any; for characters and factors dummy variables are created and the aggregate is the mean of each dummy; and for numerics the mean (removing NAs).

See Also

sim_agg

Examples

1


Search within the saeSim package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.