clean | R Documentation |
Cleans survey data to work with the 'contact_matrix' function
## S3 method for class 'survey'
clean(x, country.column = "country", participant.age.column = "part_age", ...)
x |
A |
country.column |
the name of the country in which the survey participant was interviewed |
participant.age.column |
the column in |
... |
ignored |
a cleaned survey in the correct format
data(polymod)
cleaned <- clean(polymod) # not really necessary as the 'polymod' data set has already been cleaned
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.