PBSmodelling (version 2.68.8)

readList: Read a List from an ASCII File

Description

Read in a list previously saved to an ASCII file by various R functions such as dput, dump, and writeList. The latter can render lists in a convenient PBSmodelling format. The function readList detects the format automatically.

For information about the PBSmodelling format, see writeList.

Usage

readList(fname)

Value

Returns a list object from ASCII files originally formatted in one of the following ways:

"D" = created by the R functions dput or dump;

"R" = R list object that uses `structure' (e.g., Windows History file);

"P" = PBS-formatted file (see writeList);

"C" = comment-delimited file (e.g., Awatea/Coleraine input files).

Arguments

fname

file name of the text file containing the list.

Warning

When importing a list in the PBSmodelling ("P") format, if two list elements share the same name, the list will import incorrectly.

Author

Alex Couture-Beil, Vancouver Island University, Nanaimo BC

See Also

packList, unpackList, writeList