Learn R Programming

DEPONS2R (version 1.2.2)

read.DeponsDyn: Reading DEPONS simulation output

Description

Function for reading simulation output produced by DEPONS.

Usage

read.DeponsDyn(
  fname,
  title = "NA",
  landscape = "NA",
  simtime = "NA",
  startday = "NA",
  timestep = 30,
  tz = "GMT"
)

Value

DeponsDyn object containing simulation output

Arguments

fname

Name of the file (character) that contains number of animals for each time step during the simulation, along with their energy and the amount of food in the landscape. The name includes the path to the directory if this is not the current working directory.

title

Optional character string giving name of simulation

landscape

The landscape used in the simulation

simtime

Optional character string with the date and time when the simulation finished (format yyyy-mm-dd). If not provided this is obtained from name of input file

startday

The start of the period that the simulation represents, i.e. the real-world equivalent of 'tick 1' (character string of the form 'yyyy-mm-dd', or POSIXlt)

timestep

Time step used in the model, in minutes. Defaults to 30 in DEPONS.

tz

Time zone.

See Also

See DeponsDyn-class for details on what is stored in the output object.

Examples

Run this code
if (FALSE) {
dyn.file <- "/Applications/DEPONS 2.1/DEPONS/Statistics.2020.Sep.02.20_24_17.csv"
file.exists(dyn.file)
porpoisedyn <- read.DeponsDyn(dyn.file, startday=as.POSIXlt("2010-01-01"))
porpoisedyn
}

Run the code above in your browser using DataLab