leppott / MBSStools

Suite of tools for data manipulation and calculations for Maryland DNR MBSS program.
https://leppott.github.io/MBSStools/
GNU General Public License v3.0
3 stars 3 forks source link

metric.values - Fish example not working #14

Closed leppott closed 6 years ago

leppott commented 6 years ago

Example code fails.

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,"Metric"]))))

Taxa Data

myDF.Fish <- taxa_fish myMetric.Values.Fish <- metric.values(myDF.Fish, "SampleID", "fish", myMetrics.Fish) View(myMetric.Values.Fish)

leppott commented 6 years ago

Extra parameter. Hold over from previous version of the code. Remove "SampleID".

Fixed in v1.0.1.

leppott commented 6 years ago

https://github.com/leppott/MBSStools/commit/5904ca6830d66a4caab96d80739681d6d7d90abf