R/c.R

Defines functions c.DemographicTable

Documented in c.DemographicTable

#' @title Concatenate [DemographicTable] Objects
#' 
#' @param ... one or more [DemographicTable] objects
#' 
#' @returns
#' Function [c.DemographicTable()] returns a [DemographicTable] object.
#' 
#' @keywords internal
#' @export c.DemographicTable
#' @export
c.DemographicTable <- function(...) {
  ret <- list(...) |>
    lapply(FUN = unclass) |> # a 'list' of 'list' (not 'listof')
    do.call(what = c)
  class(ret) <- c('DemographicTable', 'listof')
  return(ret)
}

Try the DemographicTable package in your browser

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

DemographicTable documentation built on April 12, 2025, 1:22 a.m.