HUC_TS_aggregator: Aggregate HUC time series data

View source: R/HUC_TS_aggregator.R

HUC_TS_aggregatorR Documentation

Aggregate HUC time series data

Description

Aggregate time series data for a collection of HUCs

Usage

HUC_TS_aggregator(upstream_size, fromHUC, huc12_areaDF, huc12agg_areaDF, dataF)

Arguments

upstream_size

Named integer list of the number of upstream HUCs for each huc.

fromHUC

Named list of lists containing the HUCs that flow into each HUC.

huc12_areaDF

data.frame with a single observation of area for each local HUC.

huc12agg_areaDF

data.frame with a single observation of area for each aggregated HUC.

dataF

data.frame with a set of observations for each local HUC.

Value

dataF data.frame with the set of observations aggregated upstream using a weighted average.

Author(s)

David Blodgett dblodgett@usgs.gov

Examples

## Not run: 
load(system.file("extdata","HUC_TS_aggregator_test.rda",package="HUCAgg"))
outData<-HUC_TS_aggregator(upstream_size,fromHUC,huc12_areaDF,huc12agg_areaDF,dataF)

## End(Not run)

USGS-R/HUCAgg documentation built on Nov. 24, 2022, 4:36 a.m.