OHDSI / omock

https://ohdsi.github.io/omock/
Apache License 2.0
2 stars 0 forks source link

improve error message #91

Open catalamarti opened 2 weeks ago

catalamarti commented 2 weeks ago
cdm <- omock::mockCdmFromTable(cohortTable = dplyr::tibble(
  cohort_definition_id = 1, 
  subject_id = c(1, 3, 4), 
  cohort_start_date = as.Date("2020-01-01"),
  cohort_end_date = as.Date("2020-01-01")
))
#> Error in `vec_c()`:
#> ! Can't combine `cohort_definition_id` <double> and `cohort_start_date` <date>.

Created on 2024-06-26 with reprex v2.1.0