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

incorrect number of subscripts #49

Open
blackcoral opened this issue Mar 17, 2020 · 3 comments
Open

incorrect number of subscripts #49

blackcoral opened this issue Mar 17, 2020 · 3 comments

Comments

@blackcoral
Copy link

I have been trying to use the iNEXT function from the following code. This worked in version 2.0.13 in R x64 3.3.2. For some reason I get the follow error and I am not sure what the problem is. The best I can tell is that this error started when I updated my install versions.

points <- 400
acc_curve <- iNEXT(species_data_matrix,q=0, datatype = "incidence_raw", endpoint = points, nboot = 1000, knots = points, conf = 0.95)

Error in arr[1, , ] <- t(as.matrix(ChaoSpecies(x, datatype, conf))) :
incorrect number of subscripts

The data matrix is listed as species in the row name and site name in the column name with 0 or 1 for presence/ absence. I can try to upload the data if needed.

Thanks for any help.
Tony

@cmzambranat
Copy link

Have you find a solution to this problem? I'm getting the same error. Similar to your problem, this is a script that used to work.
Same error:

Error in arr[1, , ] <- t(as.matrix(ChaoSpecies(x, datatype, conf))) : 
  incorrect number of subscripts

@blackcoral
Copy link
Author

blackcoral commented Jul 4, 2020 via email

@cmzambranat
Copy link

Thank you! This was very helpful, converting the matrix to a list works. Also, there is an error when plotting the iNEXT object. I solved based on the response here.

names(iNEXT_object$iNextEst) <- "random"

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

No branches or pull requests

2 participants