1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/case-weights.R
\name{is_case_weights}
\alias{is_case_weights}
\title{Is \code{x} a case weights vector?}
\usage{
is_case_weights(x)
}
\arguments{
\item{x}{An object.}
}
\value{
A single \code{TRUE} or \code{FALSE}.
}
\description{
\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#experimental}{\figure{lifecycle-experimental.svg}{options: alt='[Experimental]'}}}{\strong{[Experimental]}}
\code{is_case_weights()} checks if \code{x} inherits from \code{"hardhat_case_weights"}.
}
\examples{
is_case_weights(1)
is_case_weights(frequency_weights(1))
}
|