View source: R/balance_around.R
combine_designs | R Documentation |
When creating a design that incorporates points from another design to revisit, it can be important to approximate the same spatial distribution, especially if the design is spatially balanced. This will substitute in revisit points that will cause the least shift in the spatial distribution.
combine_designs( sub_points, template_points, sub_idvar = "plotid", template_idvar = "plotid", sub_counts = NULL, strata_polygons = NULL, polygons_stratavar = "stratum", sub_stratavar = "stratum", template_stratavar = "stratum", projection = NULL, iteration_limit = 5000 )
sub_points |
Point sf object. The points you would like to substitute from by comparing against |
template_points |
Point sf object. The points you would like to compare against |
sub_idvar |
Character string. The name of the variable in |
template_idvar |
Character string. The name of the variable in |
sub_counts |
Optional named numeric vector. A vector of the number of template points to replace with the closest approximation from the existing points in each stratum. Only use if there is more than one stratum. The names of the vector must exactly match the strata of the points. If |
strata_polygons |
Optional polygon sf object. Polygons assigned a variable with a name |
polygons_stratavar |
Optional character string. If |
sub_stratavar |
Optional character string. The name of the variable in |
template_stratavar |
Optional character string. The name of the variable in |
projection |
Optional character string or CRS object. The projection to force all spatial objects into, e.g. |
iteration_limit |
Numeric. The upper limit on the number of iterations to try to match points in |
A spatial points data frame of the template_points
with points from sub_points
substituted in. It will be in the projection specified by projection
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.