mirror of
https://github.com/msberends/AMR.git
synced 2025-01-24 04:24:34 +01:00
documentation fix
This commit is contained in:
parent
d20caae54b
commit
3b652983b7
@ -1,6 +1,6 @@
|
|||||||
Package: AMR
|
Package: AMR
|
||||||
Version: 1.8.2.9041
|
Version: 1.8.2.9042
|
||||||
Date: 2022-10-31
|
Date: 2022-11-05
|
||||||
Title: Antimicrobial Resistance Data Analysis
|
Title: Antimicrobial Resistance Data Analysis
|
||||||
Description: Functions to simplify and standardise antimicrobial resistance (AMR)
|
Description: Functions to simplify and standardise antimicrobial resistance (AMR)
|
||||||
data analysis and to work with microbial and antimicrobial properties by
|
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!
|
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]
|
#' @return Ordered [factor]
|
||||||
#' @seealso To determine ages, based on one or more reference dates, use the [age()] function.
|
#' @seealso To determine ages, based on one or more reference dates, use the [age()] function.
|
||||||
#' @export
|
#' @export
|
||||||
|
|
||||||
#' @examples
|
#' @examples
|
||||||
#' ages <- c(3, 8, 16, 54, 31, 76, 101, 43, 21)
|
#' 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{
|
#' \donttest{
|
||||||
#' # resistance of ciprofloxacin per age group
|
#' # resistance of ciprofloxacin per age group
|
||||||
#' if (require("dplyr")) {
|
#' if (require("dplyr") && require("ggplot2")) {
|
||||||
#' example_isolates %>%
|
#' example_isolates %>%
|
||||||
#' filter_first_isolate() %>%
|
#' filter_first_isolate() %>%
|
||||||
#' filter(mo == as.mo("Escherichia coli")) %>%
|
#' filter(mo == as.mo("Escherichia coli")) %>%
|
||||||
|
@ -56,7 +56,7 @@ age_groups(ages, "children")
|
|||||||
|
|
||||||
\donttest{
|
\donttest{
|
||||||
# resistance of ciprofloxacin per age group
|
# resistance of ciprofloxacin per age group
|
||||||
if (require("dplyr")) {
|
if (require("dplyr") && require("ggplot2")) {
|
||||||
example_isolates \%>\%
|
example_isolates \%>\%
|
||||||
filter_first_isolate() \%>\%
|
filter_first_isolate() \%>\%
|
||||||
filter(mo == as.mo("Escherichia coli")) \%>\%
|
filter(mo == as.mo("Escherichia coli")) \%>\%
|
||||||
|
Loading…
Reference in New Issue
Block a user