as.ab(x, flag_multiple_results = TRUE, info = interactive(), ...)
+ as.ab(x, flag_multiple_results = TRUE, language = get_AMR_locale(),
+ info = interactive(), ...)
is.ab(x)
@@ -73,6 +74,10 @@
a logical to indicate whether a note should be printed to the console that probably more than one antibiotic drug code or name can be retrieved from a single input value.
+language
+language to coerce input values from any of the 20 supported languages - default to the system language if supported (see get_AMR_locale()
)
+
+
info
a logical to indicate whether a progress bar should be printed - the default is TRUE
only in interactive mode
@@ -134,16 +139,13 @@
#> [1] ERY
as.ab("J 01 FA 01")
#> Class 'ab'
-#> [1] CEC
+#> [1] ERY
as.ab("Erythromycin")
#> Class 'ab'
#> [1] ERY
as.ab("eryt")
#> Class 'ab'
#> [1] ERY
-as.ab(" eryt 123")
-#> Class 'ab'
-#> [1] ETP
as.ab("ERYT")
#> Class 'ab'
#> [1] ERY
diff --git a/reference/as.av.html b/reference/as.av.html
index ae8fe5ea4..9edacde40 100644
--- a/reference/as.av.html
+++ b/reference/as.av.html
@@ -7,7 +7,7 @@
AMR (for R)
- 2.1.1.9158
+ 2.1.1.9159