Learn R Programming

hardhat (version 1.3.0)

is_importance_weights: Is x an importance weights vector?

Description

[Experimental]

is_importance_weights() checks if x inherits from "hardhat_importance_weights".

Usage

is_importance_weights(x)

Value

A single TRUE or FALSE.

Arguments

x

An object.

Examples

Run this code
is_importance_weights(1)
is_importance_weights(frequency_weights(1))
is_importance_weights(importance_weights(1))

Run the code above in your browser using DataLab