R/rv.R

Defines functions rv

Documented in rv

#' rv
#'
#' Formats a random variable and its meaning for R Markdown.
#'
#' @param symbol character: symbol
#' @param explanation character: meaning
#'
#' @return formatted string
#' @export
#'
#' @examples
#' rv("X", "Waiting time in minutes until next event")
rv <- function(symbol, explanation) {
  sprintf('$%s$: "%s"', symbol, explanation)
} 
sigbertklinke/exams2moodle documentation built on July 6, 2023, 3:26 p.m.