Description Usage Arguments Author(s) Examples
Creates a table storing probabilities for degrees
1 | create_degree_probabilities_table(probabilities, norm = TRUE)
|
probabilities |
a data frame containing the probabilities |
norm |
if TRUE, will normalize the table so the columns sum up to 1 (defaults to TRUE) |
Samuel Thiriot <samuel.thiriot@res-ear.ch>
1 2 3 4 5 6 7 8 | # create a table describing degrees depending to size; the bigger the size, the highest the degree
p <- data.frame(
'size=0'=c(0.2, 0.8, 0, 0, 0),
'size=1'=c(0.15, 0.8, 0.05, 0, 0),
'size=2'=c(0.05, 0.8, 0.1, 0.05, 0),
check.names=FALSE
)
create_degree_probabilities_table(probabilities=p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.