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

Specifying selectivity by input variable name #87

Open
lentinj opened this issue Oct 12, 2022 · 1 comment
Open

Specifying selectivity by input variable name #87

lentinj opened this issue Oct 12, 2022 · 1 comment

Comments

@lentinj
Copy link
Collaborator

lentinj commented Oct 12, 2022

It'd be nice to do:

g3a_predate_fleet(f_stock, list(imm_stock, mat_stock), selectivity = list(imm_stock = x, mat_stock = y), ...)

But this doesn't work, since we look up by the stock names, not the variable names.

We don't even necessarily know these names; we'd have to look up in the call structure with match.call()[['prey_stocks']] and hope the list() was part of the argument list.

@lentinj
Copy link
Collaborator Author

lentinj commented Oct 18, 2023

The use case for this evaporated with g3_parameterized(... by_predator = TRUE), but it'd still be nice I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant