is_case_weights: Is 'x' a case weights vector?

View source: R/case-weights.R

is_case_weightsR Documentation

Is x a case weights vector?

Description

[Experimental]

is_case_weights() checks if x inherits from "hardhat_case_weights".

Usage

is_case_weights(x)

Arguments

x

An object.

Value

A single TRUE or FALSE.

Examples

is_case_weights(1)
is_case_weights(frequency_weights(1))

tidymodels/hardhat documentation built on Sept. 26, 2024, 11:38 p.m.