Description Usage Arguments Value Examples
Interpolate points from polygon SPDF This function returns (weighted) sample points in fine for every polygon in crude. Thus running it repeatedly gives you useful variation that reflects the interpolation uncertainty.
1 2 | interpolatePolyPoint(crude, fine, weightCol = NULL, nSampleCol = 1,
replace = TRUE, verbose = FALSE)
|
crude |
A SpatialPolygonsDataFrame. |
fine |
A SpatialPointsDataFrame. |
weightCol |
A column name in fine to weight the point sampling by, or NULL if no weighting is required |
nSampleCol |
Either a column name in crude containing number of elements of fineWithin to sample per polygon, or a number of points to sample per polygon |
replace |
A logical indicating whether to sample points from fine with replacement or not within each polygon of crude |
verbose |
Whether to output detailed error messages |
A SpatialPointsDataFrame containing
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.