Learn R Programming

surveygraph (version 1.0.0)

data_preprocess: Outputs a synthetic survey using a simple model

Description

data_preprocess() outputs a synthetic survey, generated using a simple, stochastic model of polarisation.

Usage

data_preprocess(data, limits = NULL, dummycode = NULL)

Value

A data frame corresponding to a survey.

Arguments

data

The number of rows in the survey

limits

The number of columns in the survey

dummycode

The fraction of nodes in the smaller of the two polarised groups

Examples

Run this code
S <- make_synthetic_data(200, 8)

Run the code above in your browser using DataLab