sample_rs_fixed {pastclim} | R Documentation |
Sample the same locations from a region time series
Description
Internal function for fixed sampling from sample_region_series()
,
used when a single size is given.
Usage
sample_rs_fixed(x, size, method = "random", replace = FALSE, na.rm = TRUE)
Arguments
x |
a |
size |
number of points sampled; the same locations across all time steps |
method |
one of the sampling methods from |
replace |
boolean determining whether we sample with replacement |
na.rm |
boolean determining whether NAs are removed |
Value
a data.frame with the sampled cells and their respective values for the climate variables.
[Package pastclim version 2.2.0 Index]