Description Usage Arguments Value Author(s) See Also Examples
Set the value of a site-process specific paramter in a Site object attached to a Process object. The Process object must be attached to the Site object. The new value must be compatible with the type of the site-process specific parameter.
1 2 | ## S3 method for class 'Process'
setParameterAtSite(this, site, id, value, ...)
|
this |
A Process object. |
site |
A Site object. |
id |
The identifier of the site-process specific parameter. |
value |
The new value for the parameter. |
... |
Not used. |
The site-process specific parameter, which is a list containing the following keys: id, name, value, type.
Botond Sipos, Gregory Jordan
For more information see Process
.
1 2 3 4 5 6 7 8 9 10 11 | # create a Site and a Process object
a<-BinaryAlphabet()
s<-Site(alphabet=a)
p<-Process(alphabet=a)
# attach the process
attachProcess(s,p)
# set the value of the rate multiplier
setParameterAtSite(p,s,"rate.multiplier",2)
# get the value of the rate multiplier
getParameterAtSite(p,s,"rate.multiplier")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.