Learn R Programming

epanet2toolkit (version 1.0.8)

ENgetlinktype: Retrieve the type code for a link

Description

Retrieve the type code for a link

Usage

ENgetlinktype(linkindex)

Value

integer type-code of the link

Arguments

linkindex

for which type code is requested

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

Run the code above in your browser using DataLab