Learn R Programming

socialmixr (version 0.1.6)

survey: Contact survey

Description

A survey object contains the results of a contact survey. In particular, it contains two data frames called participants and contacts that are linked by a column specified as id.column

Usage

survey(participants, contacts, reference = NULL)

Arguments

participants

a data.frame containing information on participants

contacts

a data.frame containing information on contacts

reference

a list containing information needed to reference the survey, in particular it can contain$a "title", "bibtype", "author", "doi", "publisher", "note", "year"

Value

a new survey object

Examples

Run this code
# NOT RUN {
data(polymod)
new_survey <- survey(polymod$participants, polymod$contacts)
# }

Run the code above in your browser using DataLab