mirror of
https://github.com/msberends/AMR.git
synced 2025-07-12 11:01:52 +02:00
prepare for CRAN
This commit is contained in:
@ -851,6 +851,8 @@ antibiotics <- dataset_UTF8_to_ASCII(as.data.frame(antibiotics, stringsAsFactors
|
||||
class(antibiotics$ab) <- c("ab", "character")
|
||||
antibiotics <- dplyr::arrange(antibiotics, name)
|
||||
|
||||
# REFER TO data-raw/loinc.R FOR ADDING LOINC CODES
|
||||
|
||||
# make all abbreviations and synonyms lower case, unique and alphabetically sorted ----
|
||||
for (i in 1:nrow(antibiotics)) {
|
||||
abb <- as.character(sort(unique(tolower(antibiotics[i, "abbreviations", drop = TRUE][[1]]))))
|
||||
@ -866,7 +868,6 @@ for (i in 1:nrow(antibiotics)) {
|
||||
}
|
||||
}
|
||||
|
||||
# REFER TO data-raw/loinc.R FOR ADDING LOINC CODES
|
||||
|
||||
usethis::use_data(antibiotics, overwrite = TRUE, version = 2, compress = "xz")
|
||||
rm(antibiotics)
|
||||
|
Reference in New Issue
Block a user