aggregate_by_date_span: Aggregate meteorological data from date span.

View source: R/aggregate_by_date_span.R

aggregate_by_date_spanR Documentation

Aggregate meteorological data from date span.

Description

Given averaged data with span ranges in "date_start" and "date_end" columns and met data with "date" column, average met data over span range and append to data frame

Usage

aggregate_by_date_span(df, df_met, warn = TRUE, progress = NULL, ...)

Arguments

df

Data frame containing span range.

df_met

Data frame containg met data.

warn

Should the function give warnings?

progress

Depreciated as purrr::map_Df is used over plyr::adply

...

Additional arguments to pass to openair::timeAverage

Value

Data frame.

Author(s)

Will Drysdale and Stuart K. Grange

Examples

## Not run: 

# Combine GC and met data
data_all <- aggregate_by_date_span(data_gc, data_met)


## End(Not run)
 

wacl-york/waclr documentation built on Dec. 8, 2022, 7:05 p.m.