rpa_control_edgeweight | R Documentation |
rpanet
.Control weight of new edges. Defined for rpanet
.
rpa_control_edgeweight(sampler = NULL)
sampler |
A function used for sampling edge weights. If |
A list of class rpacontrol
containing the sampler
function.
# Sample edge weights from Gamma(5, 0.2).
my_gamma <- function(n) rgamma(n, shape = 5, scale = 0.2)
control <- rpa_control_edgeweight(
sampler = my_gamma
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.