Skip to contents

Writes the tables of a climate_source_compare() result: <prefix>_metrics.csv, <prefix>_exposure.csv, <prefix>_collinearity.csv, <prefix>_geography.csv and <prefix>_points.csv (the values of every product at every point, for mapping in a GIS).

Usage

write_climate_sources(x, dir, prefix = "climate_sources")

Arguments

x

A climate_source_compare object.

dir

Folder (created if needed).

prefix

File name prefix.

Value

The paths of the files, invisibly.

References

Rodriguez-Rey, M., Jimenez-Valverde, A. (2024) Differing sensitivity of species distribution modelling algorithms to climate data source. Ecological Informatics 79, 102387. doi:10.1016/j.ecoinf.2023.102387

Examples

sim <- simulate_enm_data(seed = 1, n_presence = 50)
b <- sim$env * 1.05
cs <- climate_source_compare(list(A = sim$env, B = b), sim$presence,
                             n = 500, n_perm = 0)
f <- write_climate_sources(cs, tempdir())
basename(f)
#> [1] "climate_sources_metrics.csv"      "climate_sources_exposure.csv"    
#> [3] "climate_sources_collinearity.csv" "climate_sources_geography.csv"   
#> [5] "climate_sources_points.csv"