validate_spatraster: Validate SpatRaster Input

View source: R/bioclim_raster.R

validate_spatrasterR Documentation

Validate SpatRaster Input

Description

Checks that input is a SpatRaster with 12 layers.

Usage

validate_spatraster(x, name = "input")

Arguments

x

The input to validate.

name

Name of the variable for error messages.

Value

Invisible NULL. Throws an error if validation fails.


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