Skip to content

Commit 1aaf826

Browse files
committed
create local wave variable
1 parent 3ba5742 commit 1aaf826

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

facebook/delphiFacebook/R/variables.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,9 @@ code_testing <- function(input_data) {
291291
#'
292292
#' @importFrom dplyr coalesce
293293
code_vaccines <- function(input_data) {
294+
wave <- unique(input_data$wave)
295+
assert(length(wave) == 1, "can only code one wave at a time")
296+
294297
if ("V1" %in% names(input_data)) {
295298
# coded as 1 = Yes, 2 = No, 3 = don't know. We assume that don't know = no,
296299
# because, well, you'd know.

0 commit comments

Comments
 (0)