draw_random_samples | R Documentation |
Draw random sample
draw_random_samples(
land_hex,
num_runs,
n_samples,
use_grts = TRUE,
crs = 4326,
coords = c("lon", "lat"),
return_grts = FALSE,
seed = NULL,
quiet = FALSE,
...
)
land_hex |
(Spatial) Data frame. Land Cover data by hexagon. If
non-spatial, will be converted to spatial sf data frame using the |
num_runs |
Numeric. Number of times to draw random samples. |
n_samples |
Numeric. Number of samples to draw in each run. |
use_grts |
Logical. Whether to use |
crs |
Numeric, character, or sf/sfc. Coordinate reference system. Must
be valid input to |
coords |
Character vector. Names of the columns containing X and Y
coordinates (default |
return_grts |
Logical. Return the |
seed |
Numeric. Random seed to use for random sampling. Seed only
applies to specific sampling events (does not change seed in the
environment). |
quiet |
Logical. Whether to suppress progress messages. |
... |
Extra named arguments passed on to |
Spatial data frame of samples
draw_random_samples(psu_hexagons, num_runs = 1, n_samples = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.