R/mean-by-age.R

Defines functions dh.meanByAge

Documented in dh.meanByAge

#' This was the original version of dh.meanByGroup. It is now defunct.
#'
#' @title dh.meanByAge
#' @template conns
#' @template df
#' @param outcome outcome variable in long format
#' @param age_var age in years
#' @param intervals table defining our age bands
#' @template checks
#'
#' @return Mean values for each unit of your age variable are returned
#'
#' @name dh.meanByAge-defunct
#' @usage dh.meanByAge(conns, df, outcome, age_var, intervals, checks)
#' @keywords internal
#' @noRd
NULL

#' @rdname dsHelper-defunct
#' @section \code{dh.meanByAge}:
#' For \code{dh.meanByAge}, use \code{\link{dh.meanByGroup}}.
#'
#' @export
dh.meanByAge <- function(...) {
    .Defunct(msg = "'dh.meanByAge' has been removed from this package. 
    Use dh.meanByAge instead. See help('Defunct')")
  }
lifecycle-project/ds-helper documentation built on Oct. 27, 2023, 2:08 p.m.