This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This example shows how to use purrr to simulate ecological values. The | |
# accumulate function in purrr can be quite flexible as it can take lists as | |
# entries, and pass extra parameters on to the function. The key feature | |
# to allow for time-varying parameters here is that the input for the function | |
# has to include both the present state of the population(s), but also a time | |
# index, so the function knows what values of the parameters to refer to. | |
library(dplyr) | |
library(purrr) | |
library(ggplot2) |
NewerOlder