Learn R Programming

epanet2toolkit (version 1.0.8)

ENgetnodevalue: Retrieve node parameter value.

Description

ENgetnodevalue retrieves the values of specific node parameters.

Usage

ENgetnodevalue(nodeindex, paramcode)

Value

parameter value

Arguments

nodeindex

An integer vector specifying the node index.

paramcode

An integer or character string, the parameter codes (see below).

Examples

Run this code
# path to Net1.inp example file included with this package
inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp")  
ENopen( inp, "Net1.rpt")
ENgetnodevalue(1, "EN_ELEVATION")
ENgetnodevalue(5, "EN_BASEDEMAND")
ENclose()

Run the code above in your browser using DataLab