parseFile {Maeswrap} | R Documentation |
Takes an input file for MAESTRA/MAESPA, and reads all namelists into a nested list. Also reads the first line of the file, which (optionally) contains a title, to be used in Maestra/pa output files.
parseFile(fn)
fn |
Filename |
Returns a named list, each element contains a namelist and its parameters.
To read one namelist from a file, see readNameList
.
## Not run:
# Parse a file
con <- parseFile("confile.dat")
# Namelists in the file
names(con)
## End(Not run)