ra_values: Function to return all values in a raster object.

View source: R/ra_values.R

ra_valuesR Documentation

Function to return all values in a raster object.

Description

Function to return all values in a raster object.

Usage

ra_values(ra)

Arguments

ra

A raster object.

Value

Numeric vector or numeric matrix.

Author(s)

Stuart K. Grange

See Also

values

Examples


# Load raster object
ra_example <- raster::raster(system.file("external/test.grd", package = "raster"))

# Get values
ra_values(ra_example)

# Get unique values and sort
sort(unique(ra_values(ra_example)))


skgrange/gissr documentation built on June 20, 2024, 12:02 a.m.