R/cl.R

Defines functions cl.code cl.default cl

Documented in cl cl.code cl.default

#' Get the code list associated with the object
#'
#' @param x the object to get the \code{\link{codelist}} from.
#'
#' @return 
#' An object of type 'codelist'.
#'
#' @export
cl <- function(x) {
  UseMethod("cl")
}

#' @rdname cl
#' @export
cl.default <- function(x) {
  as.codelist(attr(x, "codelist"))
}

#' @rdname cl
#' @export
cl.code <- function(x) {
  as.codelist(attr(x, "codelist"))
}

Try the codelist package in your browser

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

codelist documentation built on April 12, 2025, 2:25 a.m.