Skip to content

Commit

Permalink
v1.0.2.9064
Browse files Browse the repository at this point in the history
* refactor: Add new fish metric (pi_BCG2_att1234b)
    + MetricNames.xlsx
    + metric_values.R
  • Loading branch information
leppott committed Nov 6, 2024
1 parent d2b6a5c commit ee88dd4
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: BioMonTools
Type: Package
Title: Tools for Biomonitoring and Bioassessment
Version: 1.0.2.9063
Version: 1.0.2.9064
Author: c(
person("Erik W.", "Leppo", email="[email protected]", role=c("aut","cre")),
person("Jen", "Stamp", role="ctb"),
Expand Down
8 changes: 7 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ NEWS

<!-- NEWS.md is generated from NEWS.Rmd. Please edit that file -->

#> Last Update: 2024-11-06 08:28:24.319915
#> Last Update: 2024-11-06 10:12:51.279687

# Version History

## Changes in version 1.0.2.9064 (2024-11-06)

- refactor: Add new fish metric (pi_BCG2_att1234b)
- MetricNames.xlsx
- metric_values.R

## Changes in version 1.0.2.9063 (2024-11-06)

- docs: Update comment about NATIVE in metric.values help
Expand Down
8 changes: 7 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ NEWS

<!-- NEWS.md is generated from NEWS.Rmd. Please edit that file -->

#> Last Update: 2024-11-06 08:28:24.319915
#> Last Update: 2024-11-06 10:12:51.279687

# Version History

## Changes in version 1.0.2.9064 (2024-11-06)

- refactor: Add new fish metric (pi_BCG2_att1234b)
- MetricNames.xlsx
- metric_values.R

## Changes in version 1.0.2.9063 (2024-11-06)

- docs: Update comment about NATIVE in metric.values help
Expand Down
6 changes: 6 additions & 0 deletions NEWS.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ cat(paste0("Last Update: ",Sys.time()))

# Version History

## Changes in version 1.0.2.9064 (2024-11-06)

* refactor: Add new fish metric (pi_BCG2_att1234b)
+ MetricNames.xlsx
+ metric_values.R

## Changes in version 1.0.2.9063 (2024-11-06)

* docs: Update comment about NATIVE in metric.values help
Expand Down
7 changes: 7 additions & 0 deletions R/metric_values.R
Original file line number Diff line number Diff line change
Expand Up @@ -4608,6 +4608,13 @@ metric.values.fish <- function(myDF
| BCG_ATTR == "3"
| BCG_ATTR == "4")]
, na.rm = TRUE) / ni_total
, pi_BCG2_att1234b = 100 * (sum(N_TAXA[(BCG_ATTR == "1"
| BCG_ATTR == "2"
| BCG_ATTR == "3"
| BCG_ATTR == "4")]
, na.rm = TRUE) +
sum(N_TAXA[BCG_ATTR2 == "4_BETTER"]
, na.rm = TRUE)) / ni_total
, pi_BCG_att1236 = 100 * sum(N_TAXA[(BCG_ATTR == "1"
| BCG_ATTR == "2"
| BCG_ATTR == "3"
Expand Down
Binary file modified inst/extdata/MetricNames.xlsx
Binary file not shown.
2 changes: 1 addition & 1 deletion inst/shiny-examples/BioMonTools/global.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Shiny Global File

# Version ----
pkg_version <- "1.0.2.9063"
pkg_version <- "1.0.2.9064"

# Packages----
library(BioMonTools)
Expand Down

0 comments on commit ee88dd4

Please sign in to comment.