R/data-antibiotics.R

#' Pre-existing conditions in 92 children
#'
#' Pre-existing medical conditions of 92 children involved in a study on the
#' optimal duration of antibiotic use in treatment of tracheitis, which is an
#' upper respiratory infection.
#'
#'
#' @name antibiotics
#' @aliases antibiotics.in.children antibiotics_in_children
#' @docType data
#' @format A data frame with 92 observations, each representing a child, on the
#' following variable.
#' \describe{
#'   \item{condition}{Pre-existing medical condition.}
#'   }
#' @keywords datasets
#' @examples
#'
#' library(ggplot2)
#'
#' ggplot(antibiotics, aes(x = condition)) +
#'   geom_bar() +
#'   labs(
#'     x = "Conidition", y = "Count",
#'     title = "Pre-existing coniditions of children",
#'     subtitle = "in antibiotic use study"
#'   ) +
#'   coord_flip()
"antibiotics"
OpenIntroStat/openintro-r-package documentation built on Nov. 19, 2023, 4:58 p.m.