View source: R/blockdyn-methods.R
read.DeponsBlockdyn | R Documentation |
Function for reading DEPONS simulation output with number of animals per block for each time step.
read.DeponsBlockdyn(
fname,
title = "NA",
landscape = "NA",
simtime = "NA",
startday = "NA"
)
fname |
Name of the file (character) that contains movement data generated by DEPONS. 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 text string with date of simulation (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' (POSIXlt) |
DeponsBlockdyn
object
See DeponsBlockdyn-class
for details on what is stored in
the output object and read.DeponsParam
for reading the parameters
used in the simulation.
## Not run:
# File loaded from default location
the.file <- "/Applications/DEPONS 2.1/DEPONS/PorpoisePerBlock.2020.Sep.02.20_24_17.csv"
file.exists(the.file)
porpoise.blockdyn <- read.DeponsBlockdyn(fname=the.file,
title="Test simulation with two blocks", landscape="North Sea")
porpoise.blockdyn
# Get the latest simulation
the.file <- get.latest.sim(type="blockdyn", dir="/Applications/DEPONS 2.1/DEPONS")
owd <- getwd()
setwd("/Applications/DEPONS 2.1/DEPONS")
porpoise.blockdyn <- read.DeponsBlockdyn(fname=the.file)
setwd(owd)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.