View source: R/methods_DESin.R
write.DESin | R Documentation |
Writes out objects of the class DESin to the working directory in a format suitable as direct input for PyRate-DES.
## S3 method for class 'DESin'
write(x, file)
x |
an object of the class DESin. |
file |
character. Path to where the files shall be written. |
a set of replicate tables in the working directory.
DESin
, summary.DESin
,plot.DESin
## Not run:
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)
write(exp1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.