mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 05:50:48 +01:00
implement EUCAST >= 2019 directly from their source files
This commit is contained in:
1 parent
aebad2ae47
commit
5d9974e2b9
23 files changed
+19941
-12249
No files matched your search
@@ -91,7 +91,9 @@
|
||||
#' @rawNamespace if(getRversion() >= "3.0.0") S3method(vctrs::vec_ptype2, sir.sir)
|
||||
#' @rawNamespace if(getRversion() >= "3.0.0") S3method(vctrs::vec_ptype2, character.sir)
|
||||
#' @rawNamespace if(getRversion() >= "3.0.0") S3method(vctrs::vec_cast, character.sir)
|
||||
#' @rawNamespace if(getRversion() >= "3.0.0") S3method(vctrs::vec_cast, factor.sir)
|
||||
#' @rawNamespace if(getRversion() >= "3.0.0") S3method(vctrs::vec_cast, sir.character)
|
||||
#' @rawNamespace if(getRversion() >= "3.0.0") S3method(vctrs::vec_cast, sir.factor)
|
||||
#' @rawNamespace if(getRversion() >= "3.0.0") S3method(vctrs::vec_cast, sir.sir)
|
||||
|
||||
# S3: amr_selector ----
|
||||
@@ -257,6 +259,12 @@ vec_cast.sir.sir <- function(x, to, ...) {
|
||||
vec_cast.character.sir <- function(x, to, ...) {
|
||||
as.character(x)
|
||||
}
|
||||
vec_cast.factor.sir <- function(x, to, ...) {
|
||||
factor(as.sir(x))
|
||||
}
|
||||
vec_cast.sir.character <- function(x, to, ...) {
|
||||
as.sir(x)
|
||||
}
|
||||
vec_cast.sir.factor <- function(x, to, ...) {
|
||||
as.sir(x)
|
||||
}
|
||||
Reference in new issue
Block a user