ENgetnodeindex: Retrieve the index of a node

View source: R/nodes.r

ENgetnodeindexR Documentation

Retrieve the index of a node

Description

Retrieve the index of a node

Usage

ENgetnodeindex(nodeid)

Arguments

nodeid

A character string specifying the node ID.

Value

An integer index of the specified node.

Note

Node indexes are consecutive integers starting from 1.

See Also

ENgetnodeid

Examples

# path to Net1.inp example file included with this package
inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp")  
ENopen( inp, "Net1.rpt")
ENgetnodeindex("10")
ENgetnodeindex("23")
ENclose()

epanet2toolkit documentation built on Nov. 6, 2023, 9:06 a.m.