This includes scripts used to clean new Portal data before they are appended to the relevant data table. It also includes functions sourced by continuous integration to update supplementary data tables. Unit tests are run on all active (still receiving new data) data tables and functions with every addition of new data (in testthat).
-
-check for appropriate dates
-compare tag data to reader tag numbers
-check body size measurements against Species
-check reproductive status against sex
-flag missing data
-flag duplicate stakes
-add R to all removed rodents
-
Correct recaptures
-add 'new tag' * to all new captures
-check for consistent species and sex on recaptures
-
Append new data to table, write table to file
-
-check for all quadrats present
-confirm all species in species list, add new species to species list
-check for duplicate species on quadrat
-flag missing values
3.Remove empty quadrats, append data to table, write table to file
-
-check for all transects present
-confirm all species in species list, add new species to species list
-flag missing values
3.Remove empty quadrats, append data to table, write table to file
-
Quality Control
-dates align with previous data
-check data range on temperature, relhumid, precip
-check battery voltage
-
Append new data, write table to file