generate_experiment: Simulate a basic experiment

Description Usage Arguments Examples

View source: R/generate_experiment.R

Description

Generate N pairwise observations of each relationship, like in a (balanced) laboratory experiment.

Usage

1
generate_experiment(input_tidygraph, n_reps)

Arguments

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.

Examples

1
2
3
4
`%>%` <- magrittr::`%>%`
successr::karate %>%
    tidygraph::as_tbl_graph(directed = F) %>%
    generate_experiment(2)

psychNerdJae/successr documentation built on Dec. 22, 2021, 9:56 a.m.