View source: R/neighborDirection.R
neighborDirection | R Documentation |
This function neighborDirection calculate the direction in degree to its surrounding neighbors or a selection
neighborDirection(spdf, col.name, modus = "nb", tol = 360, spdf.bb = NULL, sp.PoS = NULL, nb = NULL, bb = NULL, cores = 1, quiet = TRUE, ...)
spdf |
SpatialPolygonsDataFrame, or full path of a shapefile |
col.name |
column name for angles (in degree, N = 0, E = 90, S = 180, W = 270) |
modus |
"bb" for using a boundig box or "nb" for using object neighborhood nb. Modus bb returns data.frame based on spdf. Modus nb returns list based on nb. |
tol |
tolerance for select neighbor of specific range. Default: 360 |
spdf.bb |
SpatialPolygonsDataFrame from which the bounding boxes are created |
sp.PoS |
SpatialPoints to which the direction is calculated. As standard they are calculated from spdf input. Default: NULL |
nb |
object neighborhood based on |
bb |
bounding box for modus "bb". Default: Null |
cores |
number of cores for parallel processing. Default: 1 (sequential) |
quiet |
no outputs in console. Default: TRUE |
In the case of modus nb a list is returned. If modus bb is set, a data.frame based on the input spdf is returned
SpatialPolygonsDataFrame input must have an ID field with unique numbers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.