info.dimensions.lsd {LSDinterface} | R Documentation |
Dimension information for a LSD results file
Description
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.
Usage
info.dimensions.lsd( file )
Arguments
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, |
Details
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).
Value
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 |
Author(s)
Marcelo C. Pereira
See Also
list.files.lsd()
info.details.lsd()
,
info.names.lsd()
,
info.init.lsd()
Examples
# 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 ] )