From 8c905641b954f614b80a442b6084beb6317d2f53 Mon Sep 17 00:00:00 2001 From: Sebastian Funk Date: Tue, 23 Jan 2024 10:06:59 +0000 Subject: [PATCH] further clarify how to construct survey --- R/contact_matrix.r | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/R/contact_matrix.r b/R/contact_matrix.r index 8db4e4a..2cce6fd 100644 --- a/R/contact_matrix.r +++ b/R/contact_matrix.r @@ -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)