Skip to content

Commit

Permalink
include dummy event_id when necessary w/ eav read
Browse files Browse the repository at this point in the history
ref #396
  • Loading branch information
wibeasley committed Jul 19, 2022
1 parent 302614e commit 9f96755
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/redcap-read-oneshot-eav.R
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ redcap_read_oneshot_eav <- function(
show_col_types = FALSE
)

if (!"event_id" %in% colnames(ds_eav)) {
ds_eav$event_id <- "dummy_1"
}

ds_metadata_expanded <-
ds_metadata %>%
dplyr::select(.data$field_name, .data$select_choices_or_calculations, .data$field_type) %>%
Expand Down

0 comments on commit 9f96755

Please sign in to comment.