Use scores
to get ordination scores: summary.cca
will fail in the next release
#644
jarioksa
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Next vegan release will drop ordination scores from the
summary.cca
result object. You should usescores
function instead. The reason for this change is thatsummary
did not fulfil its task to provide a summary: it spat out huge volumes of scores and hid the summary part. This was a long-standing issue with developers raised in 2016 in issue #203. The fix is easy: usescores()
function instead ofsummary()
. Some simple rules of changes:summary(foo)$sites
→scores(foo)$sites
plus addimportFrom(vegan, scores)
in your NAMESPACE (if you use that).scores
function is configurable, and more complicated cases are better specified with arguments:summary(foo)$sites[, 1]
→scores(foo, display = "sites", choices = 1)
.scores
knows same argument assummary
, and in many cases you do not need to change those with the change. There is one important exception:summary
had argumentaxes
that gives the number of returned axes from the beginning, butscores
has argumentchoices
that is a vector of axis numbers. So you should changeaxes = n
→choices = seq_len(n)
. Withchoices
you can also skip some axes and you do not need to start from axis 1.summary.cca
defaulted to six axes,scores
defaults to two axes. It is best to define the number of axes explicitly withchoices
.The current release candidate uses old
summary.cca
to get scores (but will not print them). This gives a grace period to change your package, and you may not yet see the change. This is a temporary relief which is only made in the current release branch (2.6-6), and later releases will require usingscores
to get scores.Beta Was this translation helpful? Give feedback.
All reactions