check {socialmixr} | R Documentation |
Check contact survey data
Description
Checks that a survey fulfills all the requirements to work with the 'contact_matrix' function
Usage
## S3 method for class 'survey'
check(
x,
columns,
id.column = "part_id",
participant.age.column = "part_age",
country.column = "country",
year.column = "year",
contact.age.column = "cnt_age",
...
)
Arguments
x |
A |
columns |
deprecated argument, ignored |
id.column |
the column in both the |
participant.age.column |
the column in the |
country.column |
the column in the |
year.column |
the column in the |
contact.age.column |
the column in the |
... |
ignored |
Value
invisibly returns a character vector of the relevant columns
Examples
data(polymod)
check(polymod)