View source: R/calc-riverfly.R
calc_riverfly | R Documentation |
Function to calculate riverfly scores
calc_riverfly(
data,
names = macroinvertebrateMetrics::column_attributes$name,
questions = c("Taxon abundance", "Taxon Abundance", "Live abundance"),
metric_cols = macroinvertebrateMetrics::metric_cols
)
data |
A data frame of ecology data as defined in 'column_attributes'. |
names |
Optional, user provided list of column names different to those used in 'column_attributes' to match with input data |
questions |
Optional, user provided 'question' default is 'Taxon abundance', which filters only abundance values. |
metric_cols |
Columns used from taxon table to calculate metrics plus to taxon name column to join to input data (if using custom taxon table) |
... |
Pass in specific paramters for each metric. |
A data frame 5 variables
data <- demo_data
data <- data[data$parameter == "River Family Inverts", ]
output <- calc_riverfly(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.