steps-dev / steps

steps: Spatially- and Temporally- Explicit Population Simulator
19 stars 7 forks source link

Any chance we can pass multiple options to cc function via dots? #36

Open skiptoniam opened 2 years ago

skiptoniam commented 2 years ago

@cvisintin any chance we can add extra parameters to the carry capacity function rather than writing a custom cc function each time.

https://github.com/steps-dev/steps/blob/51c081f399f5ebbc643e7408613eb12c11f72b0f/R/utils.R#L75

Something like:

res <- cc(landscape, timestep, ...)

Would also require dots in the get_carrying_capacity function

So when you define a function for cc you also add the extra parameter values to the landscape function

skiptoniam commented 2 years ago

Just to clarify, I mean for multiple simulations. Where I have a ccfun, but what changes is the parameter values, rather than the function it's self.