direction.Rd
The direction (azimuth) to or from the nearest cell that is not NA
. The direction is expressed in radians, unless you use argument degrees=TRUE
.
# S4 method for SpatRaster
direction(x, from=FALSE, degrees=FALSE, filename="", ...)
SpatRaster
Character. Output filename (optional)
Logical. If FALSE
(the default) the unit of direction is radians.
Logical. Default is FALSE
. If TRUE
, the direction from (instead of to) the nearest cell that is not NA
is returned
Additional arguments as for writeRaster
SpatRaster