Skip to contents

One CSV per dataset (species, x, y, response, data_type, source) and <prefix>_datasets.csv with the summary, for software outside R or for archiving the exact input of a model.

Usage

write_integrated(x, dir, prefix = "isdm")

Arguments

x

An integrated_data from export_integrated().

dir

Output folder (created if needed).

prefix

File name prefix.

Value

Invisibly, the paths written.

References

Mostert, P.S. et al. (2025) intSDM: an R package for building a reproducible workflow for the field of integrated species distribution models. Ecology and Evolution 15, e71029. doi:10.1002/ece3.71029

Examples

m <- merge_occurrences(GBIF = data.frame(lon = 10, lat = 46),
                       survey = data.frame(lon = c(10.2, 10.3),
                                           lat = 46, present = c(1, 0)),
                       data_type = c(survey = "presence_absence"))
#> Merged records: GBIF = 1, survey = 2
#> Data types: presence_absence = 2, presence_only = 1
write_integrated(export_integrated(m), tempdir())