### Description

reads an Epanet .rpt file into R

### Usage

read.rpt(file)


### Arguments

 file the name of the file to read

### Details

add lines "Page 0", "Links All" and "Nodes All" to the [REPORT] section of the .inp file to output info to read in with this function

In contrast to the treatment of .inp files, data from .rpt files is stored using a slightly different structure than the .rpt file. The function returns an object (list) with a data.frame for node results and data.frame for link results and a data.frame for energy usage. The node and link results data frames contain results from all the time periods to facilitate time series plots.

### Value

Returns an epanet.rpt S3 object with two data.frame elements.

 nodeResults data.frame linkResults data.frame energyUsage data.frame

### References

Rossman, L. A. (2000). Epanet 2 users manual. US EPA, Cincinnati, Ohio.

### Examples

# path to Net1.rpt example file included with this package
summary(n1r)
names(n1r)

#Results for a chosen time period can be retrieved using the subset function.
subset(n1r$nodeResults, Timestamp == "0:00:00") # time series plot for a nodal value plot( Chlorine ~ timeInSeconds, data = subset(n1r$nodeResults, ID == "22"))

# Plotting the epanet.rpt object itself gives a map.
# Note that the object created from the .inp file is required.