Skip to content

Allow iterate() to take arbitrary parameters #5

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

Open
atyre2 opened this issue Apr 8, 2019 · 2 comments
Open

Allow iterate() to take arbitrary parameters #5

atyre2 opened this issue Apr 8, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@atyre2
Copy link
Owner

atyre2 commented Apr 8, 2019

Instead of passing parameters through a dataframe, ... would allow iterate() to take the parameters directly. This would enable e.g.

r <- rnorm(100, mean = sumry_griz$rbar, sd = sumry_griz$r_se)
# map_df() is a new function
bigresults <- map_df(r, ~iterate(N0=33, t = 1976:2007, b = ., d = 0, popfun=exppop), .id = "rep")
@atyre2 atyre2 added the enhancement New feature or request label Apr 8, 2019
@atyre2
Copy link
Owner Author

atyre2 commented Jul 16, 2019

This might be done by having methods, so the default method would take arbitrary parameters as above, but the data.frame / tibble method would use a parms object like presently.

@atyre2
Copy link
Owner Author

atyre2 commented Jul 16, 2019

This is the same thing as #7 - would solve that too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant