info.init.lsd | R Documentation |
This function reads the initial condition values from a LSD results file (.res).
info.init.lsd( file )
file |
the name of the LSD results file which the data are to be read from. If it does not contain an absolute path, the file name is relative to the current working directory, |
Returns a 1 line matrix containing the initial conditions (row 1) of all variables contained in the selected results file.
The returned matrix contains all variables in the results file, even the ones that don't have an initial condition (indicated as NA). Only variables automatically initialized automatically by LSD in t = 1 are included here.
Marcelo C. Pereira
list.files.lsd()
info.details.lsd()
,
info.names.lsd()
info.dimensions.lsd()
# get the list of file names of example LSD results files <- list.files.lsd( system.file( "extdata", package = "LSDinterface" ) ) # get initialization data from first and second files init1 <- info.init.lsd( files[ 1 ] ) init1[ , 4 : 8 ] init2 <- info.init.lsd( files[ 2 ] ) init2[ , 4 : 8 ]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.