parseFile {Maeswrap}R Documentation

Parse an input file

Description

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.

Usage

parseFile(fn)

Arguments

fn

Filename

Value

Returns a named list, each element contains a namelist and its parameters.

See Also

To read one namelist from a file, see readNameList.

Examples

## Not run: 
# Parse a file
con <- parseFile("confile.dat")

# Namelists in the file
names(con)

## End(Not run)

[Package Maeswrap version 1.7 Index]