This repository primarily exists to ensure any data cleaning processes used to tidy up Roberts Bank/Brunswick Point shorebird data is both backed up and documented. The goal was to leave raw data untouched so that
- future users will not need to contact me for the most up-to-date 'clean' data - they can just run the cleaning script
peep_cleanr.R
instead and - future users can see my data cleaning rationale and make changes to my cleaning scripts as they see fit.
Running this code will import raw shorebird survey data into R, clean it, and bundle it up into a SQLite database.
Certain data cleaning processes were not done in R as it was not the most expedient means to do so. See the README in the supporting_files directory for details.
In order to model the peeps data, several environmental covariates were collated for analysis:
- Discharge (m^3/s) @ Fraser River Hope monitoring station (08MF005)
- Tidal amplitude (m) @ Port Atkinson (49.3333°N, 123.2500°W)
- Avg daily temp (C°) @ Vancouver Int'l Airport
- Daily total precipitation (mm) @ Vancouver Int'l Airport
- Avg daily wind speed, direction, and vectors (km/h, °) @ Vancouver Int'l Airport
- IR (Solar radiation, W/m2) @ the University of British Columbia Totem Field climate station (49.2562°N, 123.2494°W) [Unavailable at the time of this writing]
At the time of this writing, collecting these datasets involved a hybrid of manually downloading data from relevant websites (e.g., ECCC) and R packages that can programmatically download data (e.g., {tidyhydat}). Manually downloaded files are all stored within the covariates/
directory.