Skip to contents

Write jittered replicate datasets to CSV files

Usage

write_jitter(x, dir, prefix = "jittered")

Arguments

x

A jittered_records from jitter_uncertainty().

dir

Output folder (created if needed).

prefix

File name prefix.

Value

Invisibly, the paths: one file per replicate (<prefix>_rep01.csv, ...) and <prefix>_records.csv with the per-record summary.

References

Gabor, L. et al. (2023) Species distribution models affected by positional uncertainty in species occurrences can still be ecologically interpretable. Ecography 2023, e06358. doi:10.1111/ecog.06358

Examples

sim <- simulate_enm_data(seed = 1, n_presence = 20)
j <- jitter_uncertainty(sim$presence, n = 2, uncertainty = 1000,
                        seed = 1, verbose = FALSE)
write_jitter(j, tempdir())