Learn R Programming

epanet2toolkit (version 1.0.8)

ENgetnodetype: Retrieve the node-type code

Description

ENgetnodetype retrieves the node-type code

Usage

ENgetnodetype(nodeindex)

Value

integer type-code of the node.

Arguments

nodeindex

An integer specifying the node index.

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")
ENgetnodetype(1)
ENgetnodetype(10)
ENgetnodetype(11)
ENclose()

Run the code above in your browser using DataLab