powered by
Subsampling is done according to the supplied logical vector or, if none is supplied, as a proportion of samples, randomly chosen.
sub.paleoTS(y, ok = NULL, k = 0.1, reset.time = TRUE)
the sub-sampled paleoTS object
paleoTS
a paleoTS object
a logical vector, TRUE for populations to retain
TRUE
proportion of samples to retain, with the samples chosen randomly
if TRUE, resets the time so that the first population time is zero
x <- sim.GRW(ns=20) plot(x) xs1 <- sub.paleoTS(x, k = 0.5) plot(xs1, add = TRUE, col="green") keep <- rep(c(TRUE, FALSE), 10) xs2 <- sub.paleoTS(x, ok = keep) plot(xs2, add = TRUE, col = "red")
Run the code above in your browser using DataLab