Description Usage Arguments Value Examples
View source: R/preselected_dist_mask.R
Helper to create objects to detect points to close to preselected sites
1 2 3 | preselected_dist_mask(master, expected_points, space, variable_1 = NULL,
variable_2 = NULL, use_blocks = FALSE,
verbose = TRUE)
|
master |
master_matrix object derived from function
|
expected_points |
(numeric) number of survey points (sites) to be selected. |
space |
(character) space in which the thinning will be performed. There are two options available: "G", if it will be in geographic space, and "E", if it will be in environmental space. |
variable_1 |
(character or numeric) name or position of the first variable (x-axis). Default = NULL. |
variable_2 |
(character or numeric) name or position of the second variable (y-axis). Default = NULL. |
use_blocks |
(logical) whether or not to use block centroids instead of
all points when |
verbose |
(logical) whether or not to print messages about the process. Default = TRUE. |
A list of two elements: the distance used to obtain expected_points
and a SpatialPolygonsDataFrame object created from preselected_sites in
master.
1 2 3 4 5 6 | # Data
data("m_matrix_pre", package = "biosurvey")
# Running
pdm <- preselected_dist_mask(master = m_matrix_pre, expected_points = 20,
space = "G")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.