simulate_animal: Simulate an Individual Animal

View source: R/simulate_animal.R

simulate_animalR Documentation

Simulate an Individual Animal

Description

Simulates independent movement behavior for a single animal.

Usage

simulate_animal(
  n_groups,
  time_to_leave,
  time_to_return,
  travel_time = c(0.001, 0.002),
  sampling_duration,
  samples_per_day = 1
)

Arguments

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.

Value

A vector of sampling locations for a single animal.

Examples


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)


gavincotterill/modulr documentation built on Nov. 30, 2022, 11:15 p.m.