Direction
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
.
Arguments
- x
SpatRaster
- filename
Character. Output filename (optional)
- degrees
Logical. If
FALSE
(the default) the unit of direction is radians.- from
Logical. Default is
FALSE
. IfTRUE
, the direction from (instead of to) the nearest cell that is notNA
is returned- ...
Additional arguments as for
writeRaster