writeSSN | R Documentation |
The writeSSN
function writes a SpatialStreamnetwork object
to a new .ssn directory.
writeSSN(ssn, filename = "", o.write = FALSE)
ssn |
a SpatialStreamNetwork-class object |
filename |
the file path to the new .ssn folder, in string format. When writing, include the .ssn folder in the path |
o.write |
If TRUE, overwrite existing ssn. Defaults to |
writeSSN
does not return an object. Instead, it creates a new .ssn
directory that contains all of the information in the specified
SpatialStreamNetwork
object.
Erin E. Peterson support@SpatialStreamNetworks.com
SpatialStreamNetwork-class
library(SSN)
#for examples, copy MiddleFork04.ssn directory to R's temporary directory
copyLSN2temp()
# NOT RUN
# Create a SpatialStreamNetork object that also contains prediction sites
mf04p <- importSSN(paste0(tempdir(),'/MiddleFork04.ssn'),
predpts = "pred1km", o.write = TRUE)
writeSSN(mf04p, filename = paste0(tempdir(),"/tempFile.ssn"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.