simulating_data | R Documentation |
This function generates simulated location data using movement models. The function supports both single and grouped simulations based on whether the data is simulated or derived from an emulated or fitted model.
simulating_data(rv)
rv |
A reactive values list containing:
|
The function first constructs a time sequence based on the provided duration and interval.
If the data is fully simulated from scratch (not conditioned on existing data), it retrieves
movement model(s) from rv$modList
.
Otherwise, it either emulates a model using rv$meanfitList
and a random seed
or constructs a model from movement parameters.
If estimate comparisons are enabled (via which_meta
), two models are prepared.
The function then runs ctmm::simulate()
to generate simulated movement data.
The resulting trajectories are pseudonymized before returning.
A list containing one or two simulated movement datasets (depending on grouping):
If grouped = FALSE
, returns a list with a single simulated dataset.
If grouped = TRUE
, returns a list with two simulated datasets (for groups A
and B
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.