mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 03:40:48 +01:00
(v1.2.0.9005) data set fix
This commit is contained in:
1 parent
8b692ecfcf
commit
352508889c
14 files changed
+373
-364
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user