net.write {stream.net}R Documentation

Write Out a Stream Network Object

Description

Write out a stream network object to a set of tables type, text format files.

Usage

  net.write (net, prefix="somenet")

Arguments

net A net.object.
prefix character string for the prefix of the output file name. See details.

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.

Value

invisible.

Author(s)

Denis White, white.denis@epa.gov

See Also

net.object net.read net.qmodel net.arcinput

Examples

  # Q model random net
  net <- net.qmodel (10)

  # add segments
  net <- net.addsegs (net)

  # save
  net.write (net, prefix="test")

[Package stream.net version 1.0.6 Index]