Learn R Programming

SSN (version 1.1.7)

writeSSN: Write a SpatialStreamNetwork Object

Description

The writeSSN function writes a SpatialStreamnetwork object to a new .ssn directory.

Usage

writeSSN(ssn, filename = "", o.write = FALSE)

Arguments

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 FALSE.

Value

writeSSN does not return an object. Instead, it creates a new .ssn directory that contains all of the information in the specified SpatialStreamNetwork object.

See Also

SpatialStreamNetwork-class

Examples

Run this code
library(SSN)
ssn <- importSSN(system.file("lsndata/MiddleFork04.ssn", package = "SSN"),
    predpts = "pred1km")

writeSSN(ssn, filename = paste(tempdir(),"/tempFile.ssn", sep = ""))

Run the code above in your browser using DataLab