View source: R/simulate_animal.R
simulate_animal | R Documentation |
Simulates independent movement behavior for a single animal.
simulate_animal( n_groups, time_to_leave, time_to_return, travel_time = c(0.001, 0.002), sampling_duration, samples_per_day = 1 )
n_groups |
The number of modules in the network. |
time_to_leave |
The average days spent within the home group prior to leaving. |
time_to_return |
The average days spent abroad before returning to home group. |
travel_time |
Vector of the range of values that travel to the next group can take, drawn from a uniform distribution. |
sampling_duration |
The number of days to simulate. |
samples_per_day |
Only used in discrete time approximations in simulate_graph. |
A vector of sampling locations for a single animal.
animal_one <- simulate_animal(n_groups = 4, time_to_leave = 5, time_to_return = 2, travel_time = c(0.001, 0.002), sampling_duration = 30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.