aggregate_time: Aggregate Time

Description Usage Arguments Value

View source: R/aggregate_time.R

Description

Aggregate time series derived from climate raster aggregation

Usage

1
2
3
4
5
6
7
aggregate_time(
  ts_tbl,
  time_int = "day",
  drop_col = FALSE,
  aggr_fun = mean,
  ...
)

Arguments

ts_tbl

tibble with timeseries data for basin subunits

time_int

character time interval to aggregate, either 'year', 'mon', 'day', 'hour', or 'min'

drop_col

logical to set whether unused time columns are dropped (TRUE) or kept in the table (FALSE). If FALSE unused time columns values are set to zero.

aggr_fun

Aggregation function to apply

...

further function arguments of aggr_fun

Value

Returns an aggregated time series tibble


chrisschuerz/aRastoCAT documentation built on May 16, 2020, 1:33 a.m.