View source: R/single_id_rate.R
single_id_rate | R Documentation |
Takes an individual's continuous-time movement description and calculates the average number of days until it leaves its home state and the average number of days until it returns to its home state.
single_id_rate(sub_sched, sub_id, sim)
sub_sched |
the individual's continuous time description |
sub_id |
the individual's id string |
sim |
the simulator used to generate the schedule |
obj <- simulate_schedule(n_animals = 10, n_groups = 2, time_to_leave = 5, time_to_return = 2, travel_time = c(0.001, 0.2), sampling_duration = 30, simulator = "independent") single_id_rate(sub_sched = obj[[1]], sub_id = names(obj)[[1]], "independent")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.