Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

Arguments

fname

file name of the text file containing the list.

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).

Warning

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

Author(s)

Alex Couture-Beil, Vancouver Island University, Nanaimo BC

See Also


PBSmodelling

GUI Tools Made Easy: Interact with Models and Explore Data

v2.68.8
GPL (>= 2)
Authors
Jon T. Schnute [aut], Alex Couture-Beil [aut], Rowan Haigh [aut, cre], Nicholas Boers [ctb], Anisa Egeli [ctb], A. R. Kronlund [ctb], Steve Martell [ctb], Norm Olsen [ctb]
Initial release
2019-03-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.