| +.rpacontrol | R Documentation |
'+' is used to combine components to control the PA network generation
process. Available components are rpa_control_scenario(),
rpa_control_edgeweight(), rpa_control_newedge(),
rpa_control_preference() and rpa_control_reciprocal().
## S3 method for class 'rpacontrol'
e1 + e2
e1 |
A list of class |
e2 |
A list of class |
A list of class rpacontrol with components from e1 and
e2.
control <- rpa_control_scenario(alpha = 0.5, beta = 0.5) +
rpa_control_preference(
ftype = "customized",
spref = "pow(outs, 2) + 1",
tpref = "pow(ins, 2) + 1"
)
control <- rpa_control_scenario(alpha = 1) +
rpa_control_edgeweight(
sampler = function(n) rgamma(n, shape = 5, scale = 0.2)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.