Learn R Programming

Maeswrap (version 1.7)

parseFile: 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

Run this code
## Not run: 
# # Parse a file
# con <- parseFile("confile.dat")
# 
# # Namelists in the file
# names(con)
# ## End(Not run)

Run the code above in your browser using DataLab