View source: R/predict_indices_old.R
predict_indices_old | R Documentation |
The predict_indices
function mirrors the functionality of the RICT model available on the MS Azure platform (https://gallery.azure.ai/Experiment/RICT-package-2). Specifically, it uses environmental (ENV) data from Ecology Data Explorer to generate expected scores under minimally impacted reference conditions for 80 indices, plus probabilities for RIVPACS end-groups. No classification is undertaken.
predict_indices_old(env_data = x, save = FALSE, save_dir = getwd())
env_data |
A data frame or tibble containing site-level environmental data in Environment Agency Ecology Data Explorer format (as produced by the import_env function). |
save |
Specifies whether or not expected indices data should be saved as a rds file (for future use); Default = TRUE. |
save_dir |
Path to folder where expected indices data is to be saved; Default = Current working directory. |
All data validation and transformation (conversion) are done in this function using functions predefined in HelperFunctionsv1.R. Predictions are made using PredictionfunctionsV2.R.
The function will modify the standard RICT output, renaming "SITE" as "biol_site_id" (standardised column header for biology sites).
Tibble containing expected scores for macroinvertebrate indices plus end-group probabilities. The RICT Technical Specification and the RIVPACS IV End Group Descriptions are available at https://www.fba.org.uk/FBA/Public/Discover-and-Learn/Projects/User%20Guides.aspx
FBA, 2020. River Invertebrate Classification Tool (RICT2) User Guide V1.5 (2020) Available at: https://www.fba.org.uk/FBA/Public/Discover-and-Learn/Projects/User%20Guides.aspx
# Generate expected scores for macroinvertebrate indices, using environmental data for site(s) of interest.
# Save generated dataset as .RDS file.
# predict_indices(env_data = env_data,
# save = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.