DESin | R Documentation |
Create the input for the DES model implemented in PyRate from tables of fossil and current species distributions.
DESin(x, recent, bin.size, reps = 3, verbose = FALSE)
x |
a |
recent |
a |
bin.size |
numeric. The size of the DES-time bins in the same unit as fossil ages, but usually million years. |
reps |
numeric. The number of replicated output files. Replication arises from the uncertainty in fossil age. For each replicate the age of the fossil is sampled from a uniform distribution between the earliestAge and the latestAge. |
verbose |
logical. If TRUE, the progress is reported |
An object of the class DESin
, which is a list containing the input and output data
See https://github.com/azizka/speciesgeocodeR/wiki for more details and tutorials and
plot.DESin
, summary.DESin
, write.DESin
fos <- data.frame(species= rep(letters[1:4],25),
earliestAge = runif(100, min = 60, max = 100),
latestAge = runif(100, min = 0, max = 60),
area = sort(rep(c("A", "B"), 50)))
rec <- data.frame(species = c(letters[1:4], letters[1:2]),
area = c(rep("A",4), rep("B", 2)))
exp1 <- DESin(fos, rec, bin.size = 2, reps = 3)
summary(exp1)
#plot(exp1)
## Not run:
write.DES.in(exp1, file = "Example1_DES_in")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.