d
(in kilometres) used in the simple spatial
sampling method (S3M).R/calculate_area.R
calculate_area.Rd
Function to calculate the area size of the resulting hexagon in a hexagonal
grid and the area size of the resulting triangle in a triangular grid for a
specified value of d
(in kilometres) used in the simple spatial
sampling method (S3M).
calculate_area(d, digits = NULL)
d | A numeric value for length (in kilometres) of the maximum distance of a village/community from a sampling point. |
---|---|
digits | A numeric value specifying the number of digits to round off the resulting area size. Default is NULL |
A data.frame of 1 row and 2 columns. First column is for the area (in square kilometres) for a triangle. Second column is for the area (in square kilometres) for a hexagon.
# Calculate the area of the triangle and hexagon for a d of 10 kilometres calculate_area(d = 10, digits = 2)#> tri hex #> 1 129.9 259.81