collapse: Collapse a commondata table by aggregating the most end...

Description Usage Arguments Value

View source: R/toolkit.R

Description

Collapse a commondata table by aggregating the most end denominator.

Usage

1
collapse(table, group_cols = c("geoName", "provenanceDomain"), FUN = sum)

Arguments

table

required, the commondata table.

group_cols

optional, the column names for applying the "group by" operation. The columns "geoNames" and "provenanceDomain" by default.

FUN

optional, the function to aggregate the numerical data. Sum by default.

Value

A new commondata table


johardi/commondata-r documentation built on July 7, 2021, 11:24 p.m.