info.dimensions.lsd | R Documentation |
This function reads some dimension information from a LSD results file (.res): number of time steps, number of variables and the original column (variable) names.
info.dimensions.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, |
The returned number of time steps does not include the initial value (t = 0) for lagged variables (the second line of a .res format file).
Returns a list containing two integer values and a character vector describing the selected results file.
tSteps |
Number of time steps in file |
nVars |
Number of variables (including duplicated instances) in file |
varNames |
Names of variables (including duplicated instances) in file, after R name conversion |
Marcelo C. Pereira
list.files.lsd()
info.details.lsd()
,
info.names.lsd()
,
info.init.lsd()
# get the list of file names of example LSD results files <- list.files.lsd( system.file( "extdata", package = "LSDinterface" ) ) # get dimensions from second file info.dimensions.lsd( files[ 2 ] )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.