View source: R/calibrate_methods.R
read.DeponsDynBatch | R Documentation |
Reads batch map files and statistics files from a specified directory and returns a list of 'DeponsDyn' objects and parameter values.
read.DeponsDynBatch(
dir,
par,
title = "NA",
landscape = "NA",
simtime = "NA",
startday = "NA",
timestep = 30,
tz = "UTC"
)
dir |
Character string specifying the directory path containing the 'Batchmap' and 'Statistics' files. |
par |
Character vector specifying the column names to extract from the batch map file for each run. #' These parameters are then stored in the 'Parameters' list. |
title |
Optional character string |
landscape |
Character string. Name of the simulation landscape. Default is "NA". |
simtime |
Optional character string with the date and time when the simulation finished (format yyyy-mm-dd). |
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 |
Timezone. |
A list of 'DeponsDyn' objects and parameter values associated with run id
## Not run:
# Specify the directory containing Batchmap and Statistics files
dir_path <- "path/to/batchdata"
# Specify parameters to extract from Batchmap files
par <- c("parameter1", "parameter2")
# Run the function
results <- read.DeponsBatch(
dir = dir_path,
par = par,
startday = "2010-01-01"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.