Read a GMT file and return a list

.parse.gmt(fname)

Arguments

fname

the file path to be parsed

Value

a list of the contents of fname. See details.

Details

parse.gmt returns a nested list object. The top level contains one list per row in fname. Each of these is itself a list with the following fields: - head: the name of the data (row in fname) - desc: description of the corresponding data - len: the number of data items - entry: a vector of the data items

See also

http://clue.io/help for details on the GMT file format

Other CMap parsing functions: .parse.gmx(), .parse.grp(), .write.gmt(), .write.grp()