mc_sample.Rd
Shuffle observations in space and time.
mc_sample(x)
x | An object of class |
---|
Add an attribute mc
with a list of datasets with some noise
added to the original coordinates and dates. The number of Monte
Carlo samples and the variablity of the noise is given by the
sr_uq
attribute in the object.
d <- data.frame(lon = 1, lat = 1, date = 1) sr_obs(d, "date", uq = sr_uq(nsim = 3, space = 1, time = 1))#> Simple feature collection with 1 feature and 1 field #> geometry type: POINT #> dimension: XY #> bbox: xmin: 1 ymin: 1 xmax: 1 ymax: 1 #> epsg (SRID): 4326 #> proj4string: +proj=longlat +datum=WGS84 +no_defs #> date geometry #> 1 1 POINT (1 1)