Learn R Programming

swmmr (version 0.7.0)

read_inp: Read SWMM's .inp file

Description

Reads a SWMM .inp file and creates a list with corresponding SWMM sections. This function reads the .inp in a very simplified but reasonable manner. It's main purpose is to glance the model structure and simulation options set.

Usage

read_inp(inp, rm.comment = TRUE)

Arguments

inp

Name (incl. path) to an input file.

rm.comment

Should lines with comments starting with a ";" be discarded?

Value

A list with SWMM inp sections.

Examples

Run this code
# NOT RUN {
 
# }
# NOT RUN {
inp_sections <- read_inp("model.inp")
# }

Run the code above in your browser using DataLab