make_binary_mask: Create a binary mask

View source: R/make_binary_mask.R

make_binary_maskR Documentation

Create a binary mask

Description

Create a binary mask from a raster: NAs are converted to 0s, and any other value to 1.

Usage

make_binary_mask(x)

Arguments

x

a terra::SpatRaster

Value

a terra::SpatRaster with 0s and 1s


EvolEcolGroup/pastclim documentation built on Nov. 8, 2024, 5:21 a.m.