powered by
Cleans survey data to work with the 'contact_matrix' function
# S3 method for survey clean(x, country.column = "country", participant.age.column = "part_age", ...)
a cleaned survey in the correct format
A survey() object
survey()
the name of the country in which the survey participant was interviewed
the column in x$participants containing participants' age
x$participants
ignored
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