Skip to content

Commit

Permalink
Merge branch 'envfit-atomic': Fixes #713
Browse files Browse the repository at this point in the history
  • Loading branch information
jarioksa committed Nov 9, 2024
2 parents 3621a97 + dd77511 commit 9522321
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion R/envfit.default.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
`envfit.default` <-
function (ord, env, permutations = 999, strata = NULL, choices = c(1, 2),
display = "sites", w = weights(ord, display), na.rm = FALSE, ...)
display = "sites", w, na.rm = FALSE, ...)
{
vectors <- NULL
factors <- NULL
if (missing(w))
w <- if (is.atomic(ord)) attr(ord, "weights")
else weights(ord, display = display)
X <- scores(ord, display = display, choices = choices, ...)
keep <- complete.cases(X) & complete.cases(env)
if (any(!keep)) {
Expand Down
3 changes: 1 addition & 2 deletions man/envfit.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@

\usage{
\method{envfit}{default}(ord, env, permutations = 999, strata = NULL,
choices=c(1,2), display = "sites", w = weights(ord, display),
na.rm = FALSE, ...)
choices=c(1,2), display = "sites", w, na.rm = FALSE, ...)
\method{envfit}{formula}(formula, data, ...)
\method{plot}{envfit}(x, choices = c(1,2), labels, arrow.mul, at = c(0,0),
axis = FALSE, p.max = NULL, col = "blue", bg, add = TRUE, ...)
Expand Down

0 comments on commit 9522321

Please sign in to comment.