View source: R/functioncollection_export.R
WriteGeoClass | R Documentation |
This is a convenience wrapper function to export a 'GeoClass.txt' file from R.
WriteGeoClass(x, filename, use.comment = FALSE)
x |
The object to be written, a dataframe, as an object returned from |
filename |
A character string naming a file to write to. Windows users: Note that Paths are separated by '/', not '\'. |
use.comment |
Logical, set to |
WriteGeoClass
exports a GeoClass dataframe. HYPE accepts comment rows with a leading '!' in the beginning rows of a
GeoClass file. Comment rows typically contain some class descriptions in a non-structured way. With argument
use.comment = TRUE
, the export function looks for those in attribute
'comment',
where ReadGeoClass
stores such comments. Description files (see ReadDescription
) offer a more structured
way of storing that information.
No return value, called for export to text files.
te <- ReadGeoClass(filename = system.file("demo_model", "GeoClass.txt", package = "HYPEtools"))
WriteGeoClass(x = te, filename = tempfile())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.