powered by
data_preprocess() outputs a synthetic survey, generated using a simple, stochastic model of polarisation.
data_preprocess()
data_preprocess(data, limits = NULL, dummycode = NULL)
A data frame corresponding to a survey.
The number of rows in the survey
The number of columns in the survey
The fraction of nodes in the smaller of the two polarised groups
S <- make_synthetic_data(200, 8)
Run the code above in your browser using DataLab