mirror of
https://github.com/msberends/AMR.git
synced 2026-10-01 04:13:33 +02:00
(v1.2.0.9020) ab_from_text() improvement
This commit is contained in:
1 parent
329a0eb0b6
commit
cc6ce0a938
11 files changed
+55
-95
No files matched your search
+1
-1
@@ -94,7 +94,7 @@ ab_from_text <- function(text,
|
||||
stop_if(length(type) != 1, "`type` must be of length 1")
|
||||
|
||||
text <- tolower(as.character(text))
|
||||
text_split_all <- strsplit(text, "[ ;.,:/\\|-]")
|
||||
text_split_all <- strsplit(text, "[ ;.,:\\|]")
|
||||
|
||||
if (type %like% "(drug|ab|anti)") {
|
||||
|
||||
|
||||
Reference in new issue
Block a user