Skip to content
R scripts to calculate the Canadian Ambient Air Quality Standards (CAAQS) for fine particulate matter (PM2.5) for B.C. published on Environmental Reporting BC
R CSS
Branch: master
Clone or download
Latest commit 44e98c3 Jun 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
data
leaflet_map
print_ver Update date Jun 12, 2019
.gitignore
01_load.R
02_clean.R
03_analysis.R
04_output.R Tweaks to fix station selection when doing analysis with all years, c… Apr 4, 2019
05_databc_output.R
CODE_OF_CONDUCT.md Update README, add Code of Conduct Jul 12, 2017
CONTRIBUTING.md added code of conduct and footer Jan 14, 2016
LICENSE
README.md add apache badge Jun 1, 2018
combine_prev_year.R
pm25-caaqs-indicator.Rproj
run_all.R

README.md

In production, but maybe in Alpha or Beta. Intended to persist and be supported.License

Fine Particulate Matter CAAQS Analysis for B.C. (2014-2016)

A set of R scripts to calculate the Canadian Ambient Air Quality Standards (CAAQS) for fine particulate matter (PM2.5) for 2014-2016. These scripts reproduce the 2017 analysis presented on Environmental Reporting BC.

This analysis makes use of the rcaaqs package, and air quality monitoring data from the B.C. Ministry of Enviornment.

Usage

There are four core scripts that are required for the analysis, they need to be run in order:

  • 01_load.R - downloads the data from DataBC
  • 02_clean.R - cleans and prepares data for analysis
  • 03_analysis.R - performs the analysis
  • 04_output.R - creates maps and graphs and saves outputs

The run_all.R script can be sourceed to run it all at once.

Most packages used in the analysis can be installed from CRAN using install.packages(), but you will need to install envreportutils, rcaaqs and bcmaps using devtools:

install.packages("devtools") # If you don't already have it installed

library(devtools)
install_github("bcgov/rcaaqs")
install_github("bcgov/bcmaps")
install_github("bcgov/envreportutils")

Getting Help or Reporting an Issue

To report bugs/issues/feature requests, please file an issue.

How to Contribute

If you would like to contribute, please see our CONTRIBUTING guidelines.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

License

Copyright 2015 Province of British Columbia

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at 

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This repository is maintained by Environmental Reporting BC. Click here for a complete list of our repositories on GitHub.

You can’t perform that action at this time.