Skip to content

Commit

Permalink
further clarify how to construct survey
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Jan 23, 2024
1 parent 5090c92 commit 8c90564
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/contact_matrix.r
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ contact_matrix <- function(survey, countries = NULL, survey.pop, age.limits, fil
missing.contact.age <- match.arg(missing.contact.age)

if (!is(survey, "survey")) {
stop("'survey' must be a survey object (created using `survey()`).")
stop(
"'survey' must be a survey object (created using `survey()` ",
"or `get_survey()`)."
)
}
## clean the survey
survey <- clean(survey)
Expand Down

0 comments on commit 8c90564

Please sign in to comment.