1
0
mirror of https://github.com/msberends/AMR.git synced 2025-01-24 07:44:34 +01:00

documentation fix

This commit is contained in:
dr. M.S. (Matthijs) Berends 2022-11-05 08:18:06 +01:00
parent d20caae54b
commit 3b652983b7
4 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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!

View File

@ -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")) %>%

View File

@ -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")) \%>\%