ENsetpattern {epanet2toolkit} | R Documentation |
Set all of the multiplier factors for a specific time pattern.
Description
ENsetpattern
sets all of the multiplier factors for a specific time pattern.
Usage
ENsetpattern(index, factors)
Arguments
index |
An integer, the pattern index. |
factors |
A numeric vector, the multiplier factors for the entire pattern. |
Details
Pattern indexes are consecutive integers starting from 1.
Use this function to redefine (and resize) a time pattern all at once; use
ENsetpatternvalue
to revise pattern factors in specific time periods of a pattern.
See Also
ENgetpatternindex
, ENgetpatternlen
,
ENgetpatternvalue
, ENsetpatternvalue
Examples
# path to Net1.inp example file included with this package
inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp")
ENopen( inp, "Net1.rpt")
ENsetpattern(1, 1:10)
ENgetpatternvalue(1,1)
ENgetpatternvalue(1,10)
ENclose()
[Package epanet2toolkit version 1.0.5 Index]