Learn R Programming

epanetReader (version 1.0.0)

write.inp: Write .inp file

Description

Write an epanet.inp object to a file

Usage

write.inp(x, file)

Value

nothing

Arguments

x

epanet.inp object to write

file

the name of the file where object is written

Details

Writes an epanet.inp object to a file suitable for simulation with EPANET.

Examples

Run this code
write.inp(Net1, "Net1-fromR.inp")
n1 <- read.inp("Net1-fromR.inp")
all.equal(Net1, n1)
file.remove("Net1-fromR.inp") #clean-up the written file 

Run the code above in your browser using DataLab