diff --git a/DESCRIPTION b/DESCRIPTION index d1a71ccd1..ec20b03fc 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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="jhoksane@gmail.com"), person("Gavin L.", "Simpson", role="aut", diff --git a/R/decostand.R b/R/decostand.R index 19080b901..3d193d7de 100644 --- a/R/decostand.R +++ b/R/decostand.R @@ -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)