-
Notifications
You must be signed in to change notification settings - Fork 50
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
Creating LB_lengths objects from data inside R #7
Comments
I'm not clear on the problem. Can you expand on it with a reproducible example of what you mean? The recommended approach to creating LB_lengths objects in R is:
|
I would expect
should place that vector in LMids
Our MSE code, for example, parses various objects and then constructs a list to then call |
This can be resolved by creating a wrapper function, eg:
I'll consider adding to the package sometime, but as it isn't under active development it's probably easiest if you write the wrapper function in your own code |
Sure, no need to worry about it if the package is not being developed further. What I have is
|
Sounds good. I'll incorporate in the package at some stage when I do an update. |
If I am not mistaken, the initialize method for
LB_lengths
is designed to be used with data in files, but it becomes difficult to use it inside R when the length samples are in an R object in the workspace.I am trying to run LBSPR inside some MSE simulations, and I seem to be forced to create an empty object and then populate the stocks directly.
My view is that the kind of input juggling that it is being done should be carried out by a creator method/function,
LB_lengths()
, while a call tonew()
should be able to simply assign named inputs to the corresponding slot.The text was updated successfully, but these errors were encountered: