sumRasters: Sums rasters of the best subset models output from GARP

Description Usage Arguments Value

View source: R/sumRasters.R

Description

sumRasters GARP outputs binary presence/absence grids for the sample area and selects the best models based on user-defined qualifications. This function sums the best models into a single raster that represents the number of models that agree on a predicted presence location.

Usage

1
2
3
4
5
6
7
sumRasters(
  file.path,
  output = FALSE,
  output.path = NULL,
  format = NULL,
  over.write = FALSE
)

Arguments

file.path

path to the location of output rasters to sum (usually found in "GARPruns" folder output from GARP)

output

logical. Should the summated raster be saved to file?

output.path

a file path specifying where the output raster should be saved, including file name and type (e.g. "C:/Users/sumraster1.asc"). Can be of type ".grd", ".asc", ".tif", etc. See writeFormats for supported types

format

the format type of the raster to be saved. Can be of type "raster", "ascii", "GTiff", etc. See writeFormats for supported types

over.write

logical. Should the raster be overwritten?

Value

A single raster with cell values that represent the number of models that agree on a predicted presence location.


cghaase/GARPTools documentation built on Aug. 6, 2021, 6:38 a.m.