ENgetlinkindex: Retrieve the index of a link

View source: R/links.r

ENgetlinkindexR Documentation

Retrieve the index of a link

Description

ENgetlinkindex retrieves the index of a link with specified ID.

Usage

ENgetlinkindex(linkid)

Arguments

linkid

character

Value

integer index of requested link

Note

Link indexes are consecutive integers starting from 1.

See Also

ENgetlinkid

Examples

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

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