Description Usage Arguments Details Value
Interpolates values from source to target location using inverse distance weighting (IDW) of nearest neighbours.
1 2 3 4 5 6 7 8 9 10 11 12 13 | interpol(trg, src, ...)
## S3 method for class 'SpatialPoints'
interpol(trg, src, ..., z, n = 5, output = "sp")
## S3 method for class 'matrix'
interpol(trg, src, ..., n = 5, output = "numeric")
## S3 method for class 'data.frame'
interpol(trg, src, ..., n = 5, output = "data.frame")
## S3 method for class 't2d_tin'
interpol(trg, src, ..., n = 5, output = "numeric")
|
trg |
The target locations. Either: a |
src |
The source locations. Either: a |
... |
Further arguments passed to |
z |
If |
n |
The number of nearest neighbours used for interpolation (default is 5). |
output |
The type of output: |
Function calls idw
. You can pass further arguments to
that function, e.g. idp
to influence the distance-based weighting of neighbours
(default is 2).
output = "numeric"
: a vector of values interpolated to trg
locations.
output = "data.frame"
: a data.frame
with x and y coordinates of trg
location and interpolated values ("z").
output = "sp"
: an object of class SpatialPointsDataFrame
with the interpolated values at trg
locations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.