ENgetlinkid: Retrieve the ID label of a link

View source: R/links.r

ENgetlinkidR Documentation

Retrieve the ID label of a link

Description

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

Usage

ENgetlinkid(linkindex)

Arguments

linkindex

integer specifying the link index.

Value

character ID

Note

Link indexes are consecutive integers starting from 1.

See Also

ENgetlinkindex

Examples

# 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()

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