(v1.7.1.9014) rep() for S3 classes

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2021-07-06 16:35:14 +02:00
1 parent 16b4c74d44
commit ad10693a1a
38 files changed
+383 -320

No files matched your search

+9
View File
@@ -580,6 +580,15 @@ unique.ab <- function(x, incomparables = FALSE, ...) {
y
}
#' @method rep ab
#' @export
#' @noRd
rep.ab <- function(x, ...) {
y <- NextMethod()
attributes(y) <- attributes(x)
y
}
generalise_antibiotic_name <- function(x) {
x <- toupper(x)
# remove suffices