| clean {socialmixr} | R Documentation | 
Clean contact survey data
Description
Cleans survey data to work with the 'contact_matrix' function
Usage
## S3 method for class 'survey'
clean(x, country.column = "country", participant.age.column = "part_age", ...)
Arguments
x | 
 A   | 
country.column | 
 the name of the country in which the survey participant was interviewed  | 
participant.age.column | 
 the column in   | 
... | 
 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
[Package socialmixr version 0.3.2 Index]