Skip to content

Commit

Permalink
put back 'choices' that were accidentally dropped from goodness.cca
Browse files Browse the repository at this point in the history
choices were unintentionally dropped when goodness.cca was replaced
with the new code (then goodness2.cca) in a231931. They are still
documented but won't work.

There are many ways of doing this as discussed in issue #190 in github

(cherry picked from commit 4026ba4)
  • Loading branch information
Jari Oksanen committed Aug 30, 2016
1 parent 1598089 commit 061704c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/goodness.cca.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
## imaginary dimensions for dbrda
if (inherits(object, "dbrda"))
CA <- cbind(CA, object[[model]][["imaginary.u"]])
## take only chosen axes within the component
if (!missing(choices)) {
choices <- choices[choices <= ncol(CA)]
CA <- CA[, choices, drop = FALSE]
eig <- eig[choices]
}
att <- attributes(CA)
if (inherits(object, "rda"))
nr <- nobs(object) - 1
Expand Down

0 comments on commit 061704c

Please sign in to comment.