db.distance.polygon {RGeostats} | R Documentation |
Calculate the distance from Db to Polygon
db.distance.polygon(db, polygon, dmax = NA, scale = 0, polin = 0, radix = "Distance", modify.target = db.locmod())
db |
The |
polygon |
The |
dmax |
If defined, any distance larger than 'dmax' is set to 'dmax'. This quantity is defined in euclidean units, even if the result must be scaled further (see argument 'scale') |
scale |
Defines if the result must provide the distance (use scale=0) or if it must be scaled between 0 and 1.
|
polin |
Define if the distance calculation must be combined with the property of belonging to the polygon or not. Please use:
Patched values are set to different values according to abs(polin):
Note the minimum and maximum distance are replaced respectively by 0 and 1 if scale!=0. |
radix |
Radix of the name given to the variables storing the results in the target Db. |
modify.target |
Decides whether or not the newly created variables will have their
locator defined or not. For more information, see |
The input 'db' where a new attribute has been added containing the results of the distance calculation.