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

synchrony, Gross, with only 1 spp in a plot #60

Closed
laurenmh opened this issue Dec 1, 2015 · 2 comments
Closed

synchrony, Gross, with only 1 spp in a plot #60

laurenmh opened this issue Dec 1, 2015 · 2 comments
Labels
Milestone

Comments

@laurenmh
Copy link
Collaborator

laurenmh commented Dec 1, 2015

If there is only one species, synchrony (Gross) returns the following error:
Error in cor(agg.otherspp, com.focalspp) : incompatible dimensions

Would be nice to add a check to make a clearer error, and also to allow the metric to run on other replicates with more species

@laurenmh
Copy link
Collaborator Author

laurenmh commented Dec 1, 2015

Note this is also an issue for the variance ratio. Here the error is:
Error in cov(comdat, use = "pairwise.complete.obs") :
supply both 'x' and 'y' or a matrix-like 'x'

@laurenmh
Copy link
Collaborator Author

laurenmh commented Dec 3, 2015

added a function to check this, returns the error:
Error in check_multispp(df, species.var, replicate.var) :
One or more replicates consists of only a single species;
please remove these replicates prior to calculations

@laurenmh laurenmh closed this as completed Dec 3, 2015
@mbjones mbjones modified the milestone: 1.0.1 Jan 14, 2016
@mbjones mbjones added the bug label Jan 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants