create_buffer()
|
Function to create a buffer around a SpatialPolygons or SpatialPolygonsDataFrame
object. This is a wrapper for gBuffer() function from package rgeos
adding transformation of planar coordinates to appropriate projected coordinates
to enable creation of buffer. |
create_s3m_grid()
|
Create the rectangular S3M grid given a value of d of the farthest distance of
a village from a sampling point. |
create_sp_grid()
|
Function to create sampling grids as per CSAS or S3M specifications. This is
a wrapper function for spsample() function in sp package that
adds arguments needed to implement CSAS and S3M-specific sampling. |
get_nearest_point()
|
Function to select nearest community to a given sampling point (usually the
centroid of a square grid for CSAS or of a hexagonal grid for S3M) using
geodesic calculations based on a specified reference ellipsoid |
get_nn()
|
Function to select nearest community to a given sampling point (usually the
centroid of a square grid for CSAS or of a hexagonal grid for S3M) based on
a nearest neighbour algorithm using Euclidean calculations |
get_tri()
|
A wrapper function to gDelaunayTriangulation() to perform Delaunay
triangulation with additional options to specify thresholds for suppressing
long sided triangles |
nearest_point()
|
Function to select nearest community to a given sampling point (usually the
centroid of a square grid for CSAS or of a hexagonal grid for S3M) |
vary_density()
|
Adjust triangulation by by dividing a densely populated triangle into smaller
triangles by adding 3 points at the middle of each side of the triangle |