aggregate.GeoTimeseries: Aggregate the Metrics of a GeoTimeseries.

Description Usage Arguments Value Note See Also

View source: R/aggregate.R

Description

Aggregate the Metrics of a GeoTimeseries.

Usage

1
2
3
## S3 method for class 'GeoTimeseries'
aggregate(x, by = kGeo, FUN = base::sum,
  metrics = NULL, ...)

Arguments

x

a GeoTimeseries object.

by

(character vector) name(s) of column(s) by which to group.

FUN

(function) function to apply to each metric column.

metrics

(character vector) metrics to aggregate. Default is all metrics.

...

optional arguments passed to FUN.

Value

A data.frame object.

Note

Uses aggregate.data.frame to do the aggregation. This function omits rows that have missing values in the 'by' columns.

See Also

AggregateTimeseries.


google/GeoexperimentsResearch documentation built on May 17, 2019, 7:42 a.m.