Closed leppott closed 4 years ago
Describe the bug Calculating metrics for fish results in error and no calculation.
To Reproduce Run example code in metric.values and get error.
# Metrics, MBSS Index, Fish myIndex <- "MBSS.2005.Fish" # Thresholds thresh <- metrics_scoring # get metric names for myIndex (myMetrics.Fish <- as.character(droplevels(unique(thresh[thresh[, "Index.Name"]==myIndex,"MetricName.Other"])))) # Taxa Data myDF.Fish <- taxa_fish myMetric.Values.Fish <- metric.values(myDF.Fish, "fish", myMetrics.Fish) View(myMetric.Values.Fish)
Expected behavior Should run without error.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Did not test other R versions.
Sessioninfo below.
Fails when try to add values to be used for adjusted metrics.
Convert met.val to data frame right after it is created.
Describe the bug Calculating metrics for fish results in error and no calculation.
To Reproduce Run example code in metric.values and get error.
Expected behavior Should run without error.
Screenshots If applicable, add screenshots to help explain your problem.![image](https://user-images.githubusercontent.com/24276278/82336013-0c713780-99b8-11ea-89e3-40ea863eadcc.png)
Additional context Did not test other R versions.
Sessioninfo below.![image](https://user-images.githubusercontent.com/24276278/82336102-2ad73300-99b8-11ea-9a82-ee4f05bd1fcb.png)