Create a function for simulating a single species

create_population_simulator(FUN, ..., trait_map)

Arguments

FUN

a data generating function

...

arguments to curry out

trait_map

a named character vector whose names are names of arguments in FUN and whose elements are names of species_traits.

Value

a function(traits, ...) where traits is a list of species traits and ... are passed as additional arguments to FUN.

Examples

if (FALSE) { g <- create_generator(rMatClust, win = owin(c(0, 1), c(0, .25)), trait_map = matern_traitmap) segments <- g(traits = speciesA$traits, scale = 0.05, nsim = 100) }