BiologicalRecordsCentre / BRCindicators

An R package for creating indicators from trends data
4 stars 11 forks source link

Build a test to capture errors in rescale_species #31

Open drnickisaac opened 5 years ago

drnickisaac commented 5 years ago

There are many ways in which the data going into rescale_species() can cause problems. Many of these can be anticipated and caught or corrected. As a good example, rescale_species() currently throws an error if the first year of data is NA for every species. This can be easily fixed by removing these years from the dataset.