mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2024-11-27 23:31:54 +01:00
29 lines
528 B
R
29 lines
528 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/as_factor.R
|
|
\name{is.labelled}
|
|
\alias{is.labelled}
|
|
\title{Tests for multiple label classes}
|
|
\usage{
|
|
is.labelled(
|
|
x,
|
|
classes = c("redcapcast_labelled", "haven_labelled", "labelled")
|
|
)
|
|
}
|
|
\arguments{
|
|
\item{x}{data}
|
|
|
|
\item{classes}{classes to test}
|
|
}
|
|
\value{
|
|
logical
|
|
}
|
|
\description{
|
|
Tests for multiple label classes
|
|
}
|
|
\examples{
|
|
structure(c(1, 2, 3, 2, 10, 9),
|
|
labels = c(Unknown = 9, Refused = 10),
|
|
class = "haven_labelled"
|
|
) |> is.labelled()
|
|
}
|