parseFile: Parse an input file

Description Usage Arguments Value See Also Examples

View source: R/parseFile.R

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

1

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

1
2
3
4
5
6
7
8
## Not run: 
# Parse a file
con <- parseFile("confile.dat")

# Namelists in the file
names(con)

## End(Not run)

RemkoDuursma/Maeswrap documentation built on Nov. 5, 2019, 1:30 p.m.