check_numeric_or_raster: Check that an object is numeric or SpatRaster

View source: R/validation.R

check_numeric_or_rasterR Documentation

Check that an object is numeric or SpatRaster

Description

Check that an object is numeric or SpatRaster

Usage

check_numeric_or_raster(x, arg_name = "band")

Arguments

x

Object to check.

arg_name

Name of argument.

Value

Invisible TRUE if valid; throws error otherwise.


GeoIndexR documentation built on Oct. 10, 2026, 5:08 p.m.