Replace NAs
on layers/attributes with specified values
Usage
# S3 method for SpatRaster
replace_na(data, replace = list(), ...)
# S3 method for SpatVector
replace_na(data, replace, ...)
Arguments
- data
A SpatRaster created with
terra::rast()
or a SpatVector created withterra::vect()
.- replace
list of values, with one value for each layer/attribute that has
NA
values to be replaced.- ...
Ignored
See also
Other tidyr.methods:
drop_na.SpatVector()