powered by
Cleans survey data to work with the 'contact_matrix' function
# S3 method for contact_survey clean( x, participant_age_column = "part_age", ..., participant.age.column = deprecated() )
a cleaned survey in the correct format
A survey() object
survey()
the column in x$participants containing participants' age
x$participants
ignored
Use participant_age_column instead.
participant_age_column
data(polymod) cleaned <- clean(polymod) # not really necessary as the 'polymod' data set has already been cleaned
Run the code above in your browser using DataLab