View source: R/functioncollection_export.R
WritePmsf | R Documentation |
This is a small convenience function to export a 'partial model setup file' from R.
WritePmsf(x, filename)
x |
The object to be written, an |
filename |
A character string naming a file to write to. Windows users: Note that Paths are separated by '/', not '\'. |
Pmsf files are represented as integer vectors in R. The total number of subcatchments in the file are added as first value on export. pmsf.txt files need to be ordered as downstream sequence.
No return value, called for export to text files.
AllUpstreamSubids
, which extracts upstream SUBIDs from a GeoData dataframe.
te <- ReadGeoData(filename = system.file("demo_model", "GeoData.txt", package = "HYPEtools"))
WritePmsf(x = te$SUBID[te$SUBID %in% AllUpstreamSubids(3564, te)], filename = tempfile())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.