Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #254 #256

Merged
merged 16 commits into from
Oct 19, 2017
Merged

Issue #254 #256

merged 16 commits into from
Oct 19, 2017

Conversation

jarioksa
Copy link
Contributor

This PR is a response to issue #254. It adds a replacement function sppscores<- to add species scores if they are missing, or replace species scores if wanted. With the current implementation, the usage will be

sppscores(object) <- communitydata

Removing <- from sppscores<- would change the usage to

object <- sppscores(object, communitydata)

The function is implemented for dbrda (which never has species scores) and for capscale & metaMDS which usually have species scores, but they may be missing or unsatisfactory.

The PR is also more explicit on missing species scores. Moreover, information on species scores in db-RDA (capscale, dbrda) is saved with the ordination object and displayed in print.cca().

Jari Oksanen added 16 commits October 9, 2017 16:27
Species scores are missing in dbrda, but this function can be used
to add the species scores item to a dbrda() result object similarly
as in other constrained ordination methods.

This version is the one I suggested in
https://stackoverflow.com/questions/46531969
and is still preliminary and incomplete (and undocumented and
non-exported)
Together with previous commits in this branch, this implements the
functions outlined in github issue #254 for adding species scores
to ordination results. Still undocumented and non-exported.
This should be cherry-picked to the master even if this branch
is not merged. This commit makes no reference to sppscores()
development in this branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant