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

Project_wham doesn't work when only 1 WAA matrix in data due to indexing error #69

Open
ahart1 opened this issue Nov 9, 2022 · 1 comment

Comments

@ahart1
Copy link

ahart1 commented Nov 9, 2022

This line of code generates the below error when only 1 WAA matrix is included in the ASAP input file

Code:

toadd <- apply(data$waa[,avg.yrs.ind,], c(1,3), mean)

Error: Error in apply(data$waa[, avg.yrs.ind, ], c(1, 3), mean) :
'MARGIN' does not match dim(X)

When only 1 WAA matrix is available the MARGIN = 3 dimension does not exist

@timjmiller
Copy link
Owner

timjmiller commented Nov 9, 2022 via email

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