raster_range: Computer the range of values for raster objects

View source: R/raster.R

raster_rangeR Documentation

Computer the range of values for raster objects

Description

Computer the range of values for raster objects

Usage

raster_range(x, na.rm = TRUE, collapse = TRUE, ...)

Arguments

x

a Raster* or SpatRaster class

na.rm

logical, if TRUE remove NAs. For objects inheriting BasicRaster. Ignored for class SpatRaster.

collapse

logical, if FALSE then a matrix is returned with two columns which are vectors of min and max values for each layer. If TRUE then a a two element vector of min and max for all layers is returned

...

other arguments for minmax

Value

either a matrix of min and max values or a two element vector of min and max


BigelowLab/rasf documentation built on July 18, 2022, 10:19 p.m.