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"

Try the openintro package in your browser

Any scripts or data that you put into this service are public.

openintro documentation built on Sept. 1, 2022, 9:06 a.m.