aggregateFeather: Aggregate Time Series Data in Feather Format

Description Usage Arguments Value Examples

View source: R/aggregateFeather.R

Description

Aggregate already-processed feather files to a lower-resolution time step (eg. daily to monthly).

Usage

1
2
aggregateFeather(fNames, fPath = NULL, to = c("month", "year"), fun = sum,
  writeFeather = FALSE, reorder = TRUE, returnOriginals = FALSE)

Arguments

fNames

Character; Feather filenames to aggregate.

fPath

Character; Path to folder containing feather files. If working directory is set to containing folder, can be left as NULL.

to

Character; Target timestep to aggregate to. Should be either 'month' or 'year'.

fun

Function; Function by which to compute summary statistics. Defaults to sum.

writeFeather

Logical; Should new feather files be written? Defaults to FALSE.

reorder

Logical; Should datasets be reordered by name and HUC level? Defaults to TRUE.

returnOriginals

Logical; Return the original feather files in list?

Value

List of aggregated feather files. Name of each list item is the updated filename, accessed through names(x), where x is the returned list. Original feather files included if returnOriginals == TRUE.

Examples

1

ssaxe-usgs/METsteps documentation built on May 5, 2019, 5:54 p.m.