(v1.2.0.9005) data set fix

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-06-09 16:31:44 +02:00
1 parent 8b692ecfcf
commit 352508889c
14 files changed
+373 -364

No files matched your search

+5
View File
@@ -46,6 +46,11 @@ for (i in seq_len(nrow(antibiotics))) {
antibiotics$loinc[i] <- list(loinc_ab)
}
}
# sort and fix for empty values
for (i in 1:nrow(antibiotics)) {
loinc <- as.character(sort(unique(tolower(antibiotics[i, "loinc"][[1]]))))
antibiotics[i, "loinc"][[1]] <- ifelse(length(syn[!syn == ""]) == 0, list(""), list(loinc))
}
dim(antibiotics) # for R/data.R
usethis::use_data(antibiotics, overwrite = TRUE)