Learn R Programming

epanet2toolkit (version 1.0.8)

ENgetlinkvalue: Retrieve parameter value for a link

Description

ENgetlinkvalue retrieves the value of a specific link parameter for a link.

Usage

ENgetlinkvalue(linkindex, paramcode)

Value

The parameter value of a specified link.

Arguments

linkindex

index of the link

paramcode

requested parameter type either as name or number

See Also

ENgetlinkindex ENgetflowunits

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")
ENgetlinkvalue(1, "EN_DIAMETER")
ENgetlinkvalue(1, "EN_LENGTH")
ENgetlinkvalue(8, "EN_DIAMETER")
ENgetlinkvalue(8, "EN_LENGTH")
ENclose()

Run the code above in your browser using DataLab