View source: R/simulate_schedule.R
simulate_schedule | R Documentation |
Generates a continuous-time-movement description for each individual in a simulated network according to the rules set forth by the chosen simulator. Returns a list of data.frames.
simulate_schedule( n_animals, n_groups, n_splits = NA, time_to_leave, time_to_return, travel_time, sampling_duration, simulator = "independent" )
n_animals |
the number of animals in the network |
n_groups |
the number of social groups and/or distinct patches in the population |
n_splits |
if using the non-independent simulator. Integer value or NA. If an integer value, the number of sub-groups to split into when moving. If NA (default) larger groups will split into larger subgroups. |
time_to_leave |
the average number of days spent at home prior to leaving |
time_to_return |
the average number of days spent away from home prior to returning |
travel_time |
a list of two values in terms of days. These are the limits for draws from a uniform distribution governing how long it will take to get from one group to another. |
sampling_duration |
the number of days to simulate. |
simulator |
the simulator to use. One of: "independent", "non-independent", or "group-think". |
obj <- simulate_schedule(n_animals = 15, n_groups = 3, time_to_leave = 5, time_to_return = 2, travel_time = c(0.001, 0.2), sampling_duration = 20, simulator = "independent")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.