csbread: Reads the state of a structured population model from a CSB...

View source: R/csbread.R

csbreadR Documentation

Reads the state of a structured population model from a CSB file

Description

csbread reads a CSB file, which is generated by PSPMdemo, PSPMequi, PSPMecodyn and PSPMevodyn to save the entire state of the environmental variables and physiologically structured populations during computations.

Usage

csbread(csbfile = NULL, state = -1)

Arguments

csbfile

(string, required)

Name of the CSB file to be read with or without '.csb' extension.

state

(integer, optional)

If not specified csbread will list the states that are stored in the CSB file. If specified, it should be the name or index of one of the states in the CSB file.

Details

output <- csbread(csbfile = NULL, state = -1)

Value

If a specific state is specified and found in the file, the state is returned as a list.

Examples

## Not run: 
PSPMdemo("Medfly", c(2, 11, 0.1, 11, 15), clean = TRUE)
csbread("Medfly-PGR-0000")

csbread("Medfly-PGR-0000", 1)

## End(Not run)


PSPManalysis documentation built on Jan. 22, 2023, 1:10 a.m.