View source: R/functioncollection_export.R
WriteBasinOutput | R Documentation |
Function to export a basin output file from R.
WriteBasinOutput(x, filename, dt.format = "%Y-%m-%d")
x |
The object to be written, a dataframe with |
filename |
A character string naming a file to write to. Windows users: Note that Paths are separated by '/', not '\'. |
dt.format |
Date-time |
WriteBasinOutput
exports a dataframe with headers and formatting options adjusted to match HYPE's basin output files.
No return value, called for file export.
te <- ReadBasinOutput(filename = system.file("demo_model", "results", "0003587.txt",
package = "HYPEtools"))
WriteBasinOutput(x = te, filename = tempfile())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.