Tools to implement CAAQS analysis for air quality

achievement_levels | CAAQS Achievement levels for air pollutaionts |

add_ymd | Add a year, month, and day column to a dataframe based on a... |

airzone_map | Borders of British Columbia Airzones |

airzone_metric | Calculate the airzone metric |

clean_neg | Replaces negative values in a vector of air quality readings... |

cut_achievement | Bin a vector of air quaility readings into CAAQS achievement... |

cut_management | Bin a vector of air quaility readings into CAAQS management... |

daily_stat | Find the daily statistic of a value by some factor |

daily_stat_page | Cacluate daily maxima or averages for different sensor... |

date_fill | Fill gaps in a date sequence |

days_in_quarter | Calcuate number of days in quarter |

days_in_year | Calcuate number of days in year |

exclude_data | Given exclude rows from input dataset based on supplied... |

filled_rolling_mean | Calculate a rolling mean, but fill in missing date values... |

format_caaqs_dt | Format date-times in raw air quality data. |

format_date | This function is defunct. Use 'format_caaqs_dt' |

get_colours | Get a vector of colours for management levels or achievement... |

get_labels | Get labels |

get_levels | Return CAAQS levels for any or all, parameters, for either... |

get_std | get the CAAQS value for a given parameter |

get_units | get the CAAQS value for a given parameter |

management_levels | CAAQS Management levels for air pollutaionts |

max_na | Find the maximum, return NA if no non-NA values. |

mean_na | Find the mean, return NA if no non-NA values. |

mid_breaks | Move annual breaks to the midpoint of the year |

Mode | Find the mode of a vector of numbers |

no2_sample_data | Sample hourly NO2 data for 3 years for 4 stations |

n_within_window | number within a rolling window and step size (for dates or... |

o3_sample_data | Sample hourly ozone data for 3 years for 4 stations |

pad_date_time | Interpolate a sequence of dates and values with NA when dates... |

parse_pm_monitors | Parse multiple columns to extract a simplified PM2.5 monitor... |

plot_station_instruments | Plot date ranges at which different instruments were deployed... |

plot_ts | Plot daily time series data with exceedances |

pm_24h_caaq | Calculates the three year average for the PM2.5 24 hour... |

pm25_sample_data | Sample hourly PM2.5 data for 3 years from 10 stations |

pm_annual_caaq | Calculate the annual CAAQS metric for PM2.5 |

pm_monitor_type | Test whether a given record is from a certain PM monitor by... |

pollutant_daily_stat | Find the daily statistic of a value by some factor |

poly_summary | A function to summarise occurrences of a variable within a... |

quantile2 | Return the rank that should be used to determine the 98th... |

quantile2_na | Find the quantile, return NA if no non-NA values. |

rcaaqs | rcaaqs: Tools for calculating CAAQS with air quality data |

rcaaqs-deprecated | Defunct functions in rcaaqs |

rolling_mean | Compute the rolling mean with different windows and... |

rolling_stat_page | Compute a rolling statistic (typically over years, but also... |

rolling_sum | Compute the rolling sum with different windows. |

round_caaqs | Round up from 5 (drop-in replacement for base::round) |

so2_sample_data | Sample hourly SO2 data for 3 years for 4 stations |

summary_plot | Gnerate a summary plot of individual station CAAQS values,... |

test_time_interval | Find time interval of a vector of regularly spaced... |

valid_by_quarter | Calcuate number (or proportion) of valid days in each year... |

yearly_stat_page | Compute a yearly statistic (typically 98th percentile). |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.