View source: R/sample_region_series.R
sample_rs_variable | R Documentation |
Internal function for sampling different number of points for each
timestep of a region series from sample_region_series()
,
used when size is a vector of values.
sample_rs_variable(x, size, method = "random", replace = FALSE, na.rm = TRUE)
x |
a |
size |
a vector of the number of points sampled for each time step |
method |
one of the sampling methods from |
replace |
boolean determining whether we sample with replacement |
na.rm |
boolean determining whether NAs are removed |
a data.frame with the sampled cells and their respective values for the climate variables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.