extract_weights: Extract weights

View source: R/extract_weights.R

extract_weightsR Documentation

Extract weights

Description

Extracts the weights from the output of iterake(). It either returns data passed to universe() with the weights appended, or just a one-column tibble of the weights.

Usage

extract_weights(x, name = ".weight", append = TRUE)

Arguments

x

Output of iterake().

name

Desired column name of the weights, default is ".weight".

append

Whether or not to either append the weights to the original data (TRUE, default), or to only return a tibble of the weights.

Value

A tibble of the weights, optionally with the original data.


ttrodrigz/iterake documentation built on March 27, 2024, 12:48 a.m.