Description Usage Arguments Examples
View source: R/generate_experiment.R
Generate N pairwise observations of each relationship, like in a (balanced) laboratory experiment.
1 | generate_experiment(input_tidygraph, n_reps)
|
input_tidygraph |
A 'tbl_graph' representation from 'tidygraph'. This function may not work with other kinds of network representations, e.g. from 'igraph'. Make sure that your input graph is either directed or undirected, as you'd like it. |
n_reps |
Number of repetitions. |
1 2 3 4 | `%>%` <- magrittr::`%>%`
successr::karate %>%
tidygraph::as_tbl_graph(directed = F) %>%
generate_experiment(2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.