This internal function reads data, from a filename or R object, and
writes them to a GMT input file.
Usage
r2gmt(x, datafile, append=FALSE)
Arguments
x
data frame, matrix, or filename containing the data to be
written to a temporary file.
datafile
filename where the data will be written in
GMT format, tab-separated without header.
append
whether data should be appended to an existing file,
separating segments with ">" lines.
Value
datafile.
Details
If x is a filename, the data should be tabular with or without
a header, separated by commas or whitespace. The first line is
interpreted as header if the first non-whitespace character is not
minus, point, or number.