ENsetpattern | R Documentation |
ENsetpattern
sets all of the multiplier factors for a specific time pattern.
ENsetpattern(index, factors)
index |
An integer, the pattern index. |
factors |
A numeric vector, the multiplier factors for the entire pattern. |
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.
ENgetpatternindex
, ENgetpatternlen
,
ENgetpatternvalue
, ENsetpatternvalue
# 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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.