(v1.2.0.9023) ab_from_text() improvement

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-07-02 21:12:52 +02:00
1 parent 298e67a45b
commit 152ac5bcad
29 files changed
+175 -118

No files matched your search

+1 -1
View File
@@ -135,7 +135,7 @@ format.bug_drug_combinations <- function(x,
format <- tolower(format)
ab_txt <- rep(format, length(ab))
for (i in seq_len(length(ab_txt))) {
ab_txt[i] <- gsub("ab", ab[i], ab_txt[i])
ab_txt[i] <- gsub("ab", as.character(as.ab(ab[i])), ab_txt[i])
ab_txt[i] <- gsub("cid", ab_cid(ab[i]), ab_txt[i])
ab_txt[i] <- gsub("group", ab_group(ab[i], language = language), ab_txt[i])
ab_txt[i] <- gsub("atc_group1", ab_atc_group1(ab[i], language = language), ab_txt[i])