Calculate species suitability from a given raster and species names and writes them to a .dat file. The file
will be written to the location specified by the name
argument. If the file
already exists, it will be overwritten. The file format is plain text, with each
line terminated by a newline character.
Usage
species_suitability(
Rastercurrent,
species_names,
name = "Problem",
parameter = "SpeciesSuitability",
verbose = FALSE
)
Examples
library(terra)
data(Current)
Current <- terra::unwrap(Current)
species_suitability(Rastercurrent = Current, species_names = c("Spp1", "Spp2", "Spp3", "Spp4"))
#> used (Mb) gc trigger (Mb) max used (Mb)
#> Ncells 1748720 93.4 3221740 172.1 3221740 172.1
#> Vcells 3131782 23.9 10146329 77.5 10146257 77.5
file.remove("Problem.dat")
#> [1] TRUE