Skip to content

Commit

Permalink
CLR did not use na.rm
Browse files Browse the repository at this point in the history
  • Loading branch information
TuomasBorman authored Jun 20, 2024
1 parent 69de595 commit bdec0e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: vegan
Title: Community Ecology Package
Version: 2.6-7
Version: 2.6-8
Authors@R: c(person("Jari", "Oksanen", role=c("aut","cre"),
email="[email protected]"),
person("Gavin L.", "Simpson", role="aut",
Expand Down
2 changes: 1 addition & 1 deletion R/decostand.R
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
# the sample-specific mean value and subtract every entries'
# value with that.
clog <- log(x)
means <- rowMeans(clog)
means <- rowMeans(clog, na.rm = na.rm)
clog <- clog - means
attr(clog, "parameters") <- list("means" = means,
"pseudocount" = pseudocount)
Expand Down

0 comments on commit bdec0e2

Please sign in to comment.