net.write {stream.net} | R Documentation |
Write out a stream network object to a set of tables type, text format files.
net.write (net, prefix="somenet")
net |
A net.object . |
prefix |
character string for the prefix of the output file name. See details. |
An alternative to save
or dump
that writes table format text files.
Writes out the $links
, $segs
, and
$cords
of the net.object
in R table
format to three separate files. The prefix is pasted
onto suffixes ".links.dat"
, ".segs.dat"
,
and ".cords.dat"
, respectively, to make full
filenames.
Stream networks created from either net.qmodel
or net.arcinput
can be saved this way for
quicker retrieval for subsequent use.
Denis White, white.denis@epa.gov
net.object
net.read
net.qmodel
net.arcinput
# Q model random net net <- net.qmodel (10) # add segments net <- net.addsegs (net) # save net.write (net, prefix="test")