Description Usage Arguments Value
Calculate average pollutant ratios using linear model
1 | calculate_pollutant_ratio(df.list, avg.time, statistic, sites = FALSE)
|
df.list |
List of data frames of observation data for each pollutant in the ratio. First element of list should be
data frame for the pollutant which is the numerator in the ratio (second element should be for the denominator pollutant).
Both data frames should contain the variables |
avg.time |
Character vector specifying the time period over which to average the data. Option are 'year' or 'month' (to return the annual/monthly average) |
statistic |
The statistic to use for averaging. Options are 'mean' or 'median'. |
sites |
Logical indicating whether averaging should be grouped by site (TRUE) or data should be averaged over all sites (FALSE). |
Data frame of annual/monthly average concentration data for the pollutant ratio
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.