write.DESin: Write Method for DESin

View source: R/methods_DESin.R

write.DESinR Documentation

Write Method for DESin

Description

Writes out objects of the class DESin to the working directory in a format suitable as direct input for PyRate-DES.

Usage

## S3 method for class 'DESin'
write(x, file)

Arguments

x

an object of the class DESin.

file

character. Path to where the files shall be written.

Value

a set of replicate tables in the working directory.

See Also

DESin, summary.DESin,plot.DESin

Examples

## 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)

azizka/speciesgeocodeR documentation built on Sept. 5, 2023, 3:45 a.m.