is_frequency_weights: Is 'x' a frequency weights vector?

View source: R/case-weights.R

is_frequency_weightsR Documentation

Is x a frequency weights vector?

Description

[Experimental]

is_frequency_weights() checks if x inherits from "hardhat_frequency_weights".

Usage

is_frequency_weights(x)

Arguments

x

An object.

Value

A single TRUE or FALSE.

Examples

is_frequency_weights(1)
is_frequency_weights(frequency_weights(1))
is_frequency_weights(importance_weights(1))

hardhat documentation built on June 30, 2022, 5:05 p.m.