Learn R Programming

epanet2toolkit (version 1.0.8)

ENgetlinkindex: Retrieve the index of a link

Description

ENgetlinkindex retrieves the index of a link with specified ID.

Usage

ENgetlinkindex(linkid)

Value

integer index of requested link

Arguments

linkid

character

See Also

ENgetlinkid

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")
ENgetlinkindex("22")
ENclose()

Run the code above in your browser using DataLab