Skip to content

Commit

Permalink
Merge branch 'env-drops-dims'
Browse files Browse the repository at this point in the history
  • Loading branch information
jarioksa committed Jan 7, 2025
2 parents 7f38987 + b12a31a commit 593c856
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/envfit.default.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
w <- if (is.atomic(ord)) attr(ord, "weights")
else weights(ord, display = display)
X <- scores(ord, display = display, choices = choices, ...)
if (is.null(dim(env))) { # can fail with dropped dims: issue #720
env.name <- deparse1(substitute(env))
env <- as.data.frame(env, nm=env.name)
}
keep <- complete.cases(X) & complete.cases(env)
if (any(!keep)) {
if (!na.rm)
Expand Down

0 comments on commit 593c856

Please sign in to comment.