Skip to content

Commit 1079abf

Browse files
committed
add schema to clinic_data to parse dates correctly
1 parent d2d5b55 commit 1079abf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

R/script3_create_table_clinic_static_data.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
#' @param output_root The root directory of the output folder.
77
# @export
88
create_table_clinic_static_data <- function(output_root) {
9-
clinic_data <- readxl::read_excel(here::here("reference_data", "clinic_data.xlsx"))
9+
clinic_data <- readxl::read_excel(here::here("reference_data", "clinic_data.xlsx"),
10+
col_types=c("text", "text", "text", "text", "text", "text", "text", "text", "date", "date"))
1011
clinic_data <- clinic_data %>%
1112
tidyr::fill(clinic_country_code:clinic_id, .direction = "down")
1213

0 commit comments

Comments
 (0)