library(tibble)
convert_blanks_to_na(c("a", "b", "", "d", ""))
df <- tribble(
~USUBJID, ~RFICDTC,
"1001", "2000-01-01",
"1002", "2001-01-01",
"1003", ""
)
print(df)
convert_blanks_to_na(df)
Run the code above in your browser using DataLab