R/is_labelled.R

Defines functions is_labelled

Documented in is_labelled

#' @title Check whether object is of class "labelled"
#' @name is_labelled
#' @description This function checks whether \code{x} is of class \code{labelled}.
#'
#' @param x An object.
#' @return Logical, \code{TRUE} if \code{x} inherits from class \code{labelled},
#'           \code{FALSE} otherwise.
#'
#' @export
is_labelled <- function(x) inherits(x, c("labelled", "haven_labelled"))

Try the sjlabelled package in your browser

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

sjlabelled documentation built on April 10, 2022, 5:05 p.m.