aggregate.demog_change_component_df: Aggregate a 'demog_change_component_df'

aggregate.demog_change_component_dfR Documentation

Aggregate a demog_change_component_df

Description

A method for the generic aggregate function. This merely calls the aggregate.data.frame method and issues a warning that the class will be dropped (if called interactively). See link{collapse_demog_dimension} for an alternative if aggregation across an entire demographic dimension (e.g., “age”, “time”, etc.) is desired.

Usage

## S3 method for class 'demog_change_component_df'
aggregate(x, by, FUN, ..., simplify = TRUE, drop = TRUE)

Arguments

x

an R object.

by

a list of grouping elements, each as long as the variables in the data frame x. The elements are coerced to factors before use.

FUN

a function to compute the summary statistics which can be applied to all data subsets.

...

further arguments passed to or used by methods.

simplify

a logical indicating whether results should be simplified to a vector or matrix if possible.

drop

a logical indicating whether to drop unused combinations of grouping values. The non-default case drop=FALSE has been amended for R 3.5.0 to drop unused combinations.

Author(s)

Mark Wheldon

See Also

aggregate, link{collapse_demog_dimension}


markalava/ccmppWPP documentation built on April 21, 2022, 12:36 a.m.