leppott / BioMonTools

Tools for biomonitoring and bioassessment; metric calculation for benthic macroinvertebrates, fish, and periphyton.
https://leppott.github.io/BioMonTools/
MIT License
13 stars 5 forks source link

metric.values - not removing non-target taxa #39

Open leppott opened 4 years ago

leppott commented 4 years ago

Describe the bug Metric.values function not removing non-target taxa for benthic macroinvertebrates.

To Reproduce Use example file below. NonTargetMiscount.xlsx

Expected behavior Example file has 15 taxa but should be 14 when remove nontarget = TRUE.

Screenshots NA

Additional context NA

leppott commented 4 years ago

Mod in v0.3.3.917 (2020-02-24) moved the remove NonTarget line (~ line 391) from the overall function to the subfunctions (bugs and fish).

The bug one didn't get added.

https://github.com/leppott/BioMonTools/commit/4feb7176a5f3fde1b5da936779f13153979b0b3d

leppott commented 4 years ago

Should create a "test" for this sample.