mirror of
https://github.com/msberends/AMR.git
synced 2025-07-09 06:02:01 +02:00
select() fix for freq
This commit is contained in:
8
R/freq.R
8
R/freq.R
@ -965,6 +965,14 @@ as.data.frame.frequency_tbl <- function(x, ...) {
|
||||
as.data.frame.data.frame(x, ...)
|
||||
}
|
||||
|
||||
#' @exportMethod select.frequency_tbl
|
||||
#' @export
|
||||
#' @importFrom dplyr select
|
||||
#' @noRd
|
||||
select.frequency_tbl <- function(.data, ...) {
|
||||
select(as.data.frame(.data), ...)
|
||||
}
|
||||
|
||||
#' @noRd
|
||||
#' @exportMethod as_tibble.frequency_tbl
|
||||
#' @export
|
||||
|
35
R/globals.R
35
R/globals.R
@ -19,26 +19,15 @@
|
||||
# Visit our website for more info: https://msberends.gitab.io/AMR. #
|
||||
# ==================================================================== #
|
||||
|
||||
|
||||
|
||||
|
||||
globalVariables(c(".",
|
||||
"atc",
|
||||
"certe",
|
||||
"official",
|
||||
"trade_name",
|
||||
"umcg",
|
||||
'se_min',
|
||||
'se_max',
|
||||
'labs',
|
||||
'transmute',
|
||||
'observed',
|
||||
"..property",
|
||||
"antibiotic",
|
||||
"Antibiotic",
|
||||
"antibiotics",
|
||||
"atc",
|
||||
"authors",
|
||||
"Becker",
|
||||
"certe",
|
||||
"cnt",
|
||||
"count",
|
||||
"count.x",
|
||||
@ -59,38 +48,46 @@ globalVariables(c(".",
|
||||
"key_ab",
|
||||
"key_ab_lag",
|
||||
"key_ab_other",
|
||||
"labs",
|
||||
"Lancefield",
|
||||
"lbl",
|
||||
"median",
|
||||
"mic",
|
||||
"microorganisms",
|
||||
"microorganisms.old",
|
||||
"microorganismsDT",
|
||||
"microorganisms.prevDT",
|
||||
"microorganisms.unprevDT",
|
||||
"microorganisms.oldDT",
|
||||
"microorganisms.certe",
|
||||
"microorganisms.old",
|
||||
"microorganisms.oldDT",
|
||||
"microorganisms.prevDT",
|
||||
"microorganisms.umcg",
|
||||
"microorganisms.unprevDT",
|
||||
"microorganismsDT",
|
||||
"mo",
|
||||
"mo.old",
|
||||
"more_than_episode_ago",
|
||||
"n",
|
||||
"name",
|
||||
"observations",
|
||||
"observed",
|
||||
"official",
|
||||
"other_pat_or_mo",
|
||||
"Pasted",
|
||||
"patient_id",
|
||||
"prevalence",
|
||||
"psae",
|
||||
"R",
|
||||
"ref",
|
||||
"real_first_isolate",
|
||||
"ref",
|
||||
"S",
|
||||
"se_max",
|
||||
"se_min",
|
||||
"septic_patients",
|
||||
"shortname",
|
||||
"species",
|
||||
"trade_name",
|
||||
"transmute",
|
||||
"tsn",
|
||||
"tsn_new",
|
||||
"umcg",
|
||||
"value",
|
||||
"Value",
|
||||
"y",
|
||||
|
Reference in New Issue
Block a user