Learn R Programming

epanet2toolkit (version 1.0.8)

ENgetlinkid: Retrieve the ID label of a link

Description

ENgetlinkid retrieves the ID label of the link given its index.

Usage

ENgetlinkid(linkindex)

Value

character ID

Arguments

linkindex

integer specifying the link index.

See Also

ENgetlinkindex

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")
ENgetlinkid(1)
ENgetlinkid(12)
ENclose()

Run the code above in your browser using DataLab