R/as_hce.R

Defines functions as_hce

Documented in as_hce

#' A generic function for coercing data structures to `hce` objects
#'
#' @param x an object used to select a method.
#' @param ... additional parameters.
#'
#' @return an `hce` object.
#' @export
#' @md
#' @seealso [hce::as_hce.data.frame()].
#' @examples
#' ### data frames 
#' data(HCE1)
#' HCE <- as_hce(HCE1)
#' calcWINS(HCE)
as_hce <- function(x, ...) {
  UseMethod("as_hce")
}

Try the hce package in your browser

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

hce documentation built on Oct. 16, 2024, 9:06 a.m.