mirror of https://github.com/msberends/AMR.git
documentation fix
This commit is contained in:
parent
d20caae54b
commit
3b652983b7
|
@ -1,6 +1,6 @@
|
|||
Package: AMR
|
||||
Version: 1.8.2.9041
|
||||
Date: 2022-10-31
|
||||
Version: 1.8.2.9042
|
||||
Date: 2022-11-05
|
||||
Title: Antimicrobial Resistance Data Analysis
|
||||
Description: Functions to simplify and standardise antimicrobial resistance (AMR)
|
||||
data analysis and to work with microbial and antimicrobial properties by
|
||||
|
|
2
NEWS.md
2
NEWS.md
|
@ -1,4 +1,4 @@
|
|||
# AMR 1.8.2.9041
|
||||
# AMR 1.8.2.9042
|
||||
|
||||
This version will eventually become v2.0! We're happy to reach a new major milestone soon!
|
||||
|
||||
|
|
3
R/age.R
3
R/age.R
|
@ -143,7 +143,6 @@ age <- function(x, reference = Sys.Date(), exact = FALSE, na.rm = FALSE, ...) {
|
|||
#' @return Ordered [factor]
|
||||
#' @seealso To determine ages, based on one or more reference dates, use the [age()] function.
|
||||
#' @export
|
||||
|
||||
#' @examples
|
||||
#' ages <- c(3, 8, 16, 54, 31, 76, 101, 43, 21)
|
||||
#'
|
||||
|
@ -167,7 +166,7 @@ age <- function(x, reference = Sys.Date(), exact = FALSE, na.rm = FALSE, ...) {
|
|||
#'
|
||||
#' \donttest{
|
||||
#' # resistance of ciprofloxacin per age group
|
||||
#' if (require("dplyr")) {
|
||||
#' if (require("dplyr") && require("ggplot2")) {
|
||||
#' example_isolates %>%
|
||||
#' filter_first_isolate() %>%
|
||||
#' filter(mo == as.mo("Escherichia coli")) %>%
|
||||
|
|
|
@ -56,7 +56,7 @@ age_groups(ages, "children")
|
|||
|
||||
\donttest{
|
||||
# resistance of ciprofloxacin per age group
|
||||
if (require("dplyr")) {
|
||||
if (require("dplyr") && require("ggplot2")) {
|
||||
example_isolates \%>\%
|
||||
filter_first_isolate() \%>\%
|
||||
filter(mo == as.mo("Escherichia coli")) \%>\%
|
||||
|
|
Loading…
Reference in New Issue