terra::distance
How terra runs Euclidean Distance: terra::distance.
| Engine | terra |
|---|---|
| Tool name | terra::distance |
| Interface | r |
| Implements | Euclidean Distance |
| Documentation | Not stated |
| Effects | modifies input: no, network: no |
| Notes | S4 generic: parameters gathered from all its methods; each method takes a subset. |
| Status | active |
Parameters
| Name | Type | Required | Default | Choices | Note |
|---|---|---|---|---|---|
x | any | yes | Not stated | Not stated | Not stated |
y | any | yes | Not stated | Not stated | Not stated |
... | dots | no | Not stated | Not stated | further arguments passed on |
lonlat | any | yes | Not stated | Not stated | Not stated |
pairwise | any | no | FALSE | Not stated | Not stated |
unit | any | no | "m" | Not stated | Not stated |
method | any | no | "geo" | Not stated | Not stated |
sequential | any | no | FALSE | Not stated | Not stated |
pairs | any | no | FALSE | Not stated | Not stated |
symmetrical | any | no | TRUE | Not stated | Not stated |
target | any | no | NA | Not stated | Not stated |
exclude | any | no | NULL | Not stated | Not stated |
maxdist | any | no | NA | Not stated | Not stated |
values | any | no | FALSE | Not stated | Not stated |
filename | any | no | "" | Not stated | Not stated |
rasterize | any | no | FALSE | Not stated | Not stated |
use_nodes | any | no | FALSE | Not stated | Not stated |
names | any | no | NULL | Not stated | Not stated |
How it maps to the operation
| Operation parameter | Parameter here | Note |
|---|---|---|
raster | x | Not stated |
Differences from the operation
- Targets are cells that are not NA, so on a background of 0 every cell is a target unless target = 0 names the background; distances are in metres, unit can change that.
- Longitude/latitude rasters are measured on the ellipsoid.
Harvested by the r-packages harvester from engine version
1.9.50. Names can change when an engine is harvested again.