Skip to contents

Cleans survey data to work with the 'contact_matrix' function

Usage

# S3 method for class 'contact_survey'
clean(x, participant.age.column = "part_age", ...)

Arguments

x

A survey() object

participant.age.column

the column in x$participants containing participants' age

...

ignored

Value

a cleaned survey in the correct format

Examples

data(polymod)
cleaned <- clean(polymod) # not really necessary as the 'polymod' data set has already been cleaned