new_importance_weights: Construct an importance weights vector

View source: R/case-weights.R

new_importance_weightsR Documentation

Construct an importance weights vector

Description

[Experimental]

new_importance_weights() is a developer oriented function for constructing a new importance weights vector. Generally, you should use importance_weights() instead.

Usage

new_importance_weights(x = double(), ..., class = character())

Arguments

x

A double vector.

...

Name-value pairs defining attributes

class

Name of subclass.

Value

A new importance weights vector.

Examples

new_importance_weights()
new_importance_weights(c(1.5, 2.3, 10))

tidymodels/hardhat documentation built on Dec. 14, 2024, 11:11 a.m.