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

Getting error when merging VPA results with stock object #5

Open
marchtaylor opened this issue Nov 2, 2018 · 2 comments
Open

Getting error when merging VPA results with stock object #5

marchtaylor opened this issue Nov 2, 2018 · 2 comments

Comments

@marchtaylor
Copy link

I'm getting a cryptic error regarding possible dimension mis-match when combining the results of VPA with the original FLStock object.

> tmp <- VPA(stock, fratio = 1)
> stock <- stock + tmp
Error in !all.equal(dnx[c(-2, -6)], dny[c(-2, -6)]) : 
  invalid argument type

Any idea what the problem might be?

@iagomosqueira
Copy link
Member

It works with ple4,

library(FLAssess)

data(ple4)

tmp <- VPA(ple4, fratio = 1)
ple4 <- ple4 + tmp

Is there any NAs in stock that get ignored by VPA() and thus the output has a different size?

@marchtaylor
Copy link
Author

marchtaylor commented Nov 6, 2018

No, there are no NAs in the object. I'll send you an example.

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