Learn R Programming

SSN (version 1.1.4)

writeSSN: Write a SpatialStreamNetwork Object

Description

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

Usage

writeSSN(ssn, filename = "")

Arguments

filename
the file path to the new .ssn folder, in string format. When writing, include the .ssn folder in the path

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