md_merge | R Documentation |
Merges the results of multiple simulation runs, each produced by
md_run()
, into a single unified movedesign_output
object. This
is especially useful when running replicate simulations for power
analyses, sensitivity testing, or batch processing. Merging allows
you to aggregate all simulated individuals, outputs, and related
metadata, enabling streamlined downstream analyses.
md_merge(...)
... |
One or more objects of class |
A single movedesign_output
object that contains all merged
simulation outputs and inherits metadata from the first input
object. The output includes:
Merged list of simulated individuals (simList
),
Merged list of fitted models (simfitList
),
Merged list of seeds used for each simulation replicate
(seedList
),
Optionally, merged home range (akdeList
) and
speed (ctsdList
) outputs,
Relevant metadata describing the study design parameters.
md_prepare
,
md_run
if (interactive()) {
input <- md_prepare(
data = buffalo,
models = models,
species = "buffalo",
n_individuals = 5,
dur = list(value = 1, unit = "month"),
dti = list(value = 1, unit = "day"),
add_individual_variation = TRUE,
grouped = FALSE,
set_target = "hr",
which_meta = "mean"
)
output1 <- md_run(input)
output2 <- md_run(input)
merged <- md_merge(output1, output2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.