Skip to content

Instantly share code, notes, and snippets.

View drfeinberg's full-sized avatar

David R. Feinberg drfeinberg

View GitHub Profile
#' Reporting the participant data
#'
#' A helper function to help you format the participants data (age, sex, ...) in
#' the participants section.
#'
#' @param data A data frame.
#' @param age The name of the column containing the age of the participant.
#' @param sex The name of the column containing the sex of the participant. The
#' classes should be one of `c("Male", "M", "Female", "F")`. Note that
#' you can specify other characters here as well (e.g., `"Intersex"`), but