Skip to content

Allow iterate() to take arbitrary parameters #5

@atyre2

Description

@atyre2

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions