(v1.3.0.9022) mo_matching_score(), poorman update, as.rsi() fix

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-09-18 16:05:53 +02:00
1 parent 89401ede9f
commit 4e40e42011
138 files changed
+2923 -1472

No files matched your search

+2 -2
View File
@@ -47,7 +47,7 @@
#' With using `collapse`, this function will return a [character]:\cr
#' `df %>% mutate(abx = ab_from_text(clinical_text, collapse = "|"))`
#' @export
#' @return A [list], or a [character] if `collapse` is not `NULL`
#' @return A [list], or a [character] if `collapse` is not `NULL`
#' @inheritSection AMR Read more on our website!
#' @examples
#' # mind the bad spelling of amoxicillin in this line,
@@ -97,7 +97,7 @@ ab_from_text <- function(text,
text <- tolower(as.character(text))
text_split_all <- strsplit(text, "[ ;.,:\\|]")
progress <- progress_estimated(n = length(text_split_all), n_min = 5)
progress <- progress_ticker(n = length(text_split_all), n_min = 5)
on.exit(close(progress))
if (type %like% "(drug|ab|anti)") {