weighting_spec: Start a weighting specification

View source: R/spec.R

weighting_specR Documentation

Start a weighting specification

Description

Creates an inert recipe object. Nothing is computed until prep() is called.

Usage

weighting_spec(data, base_weights)

Arguments

data

data.frame with the sample units (one row per case).

base_weights

unquoted name of the design base-weight column.

Value

an object of class "weighting_spec".

Examples

rec <- weighting_spec(sample_survey, base_weights = pw)
rec

weightflow documentation built on July 23, 2026, 1:08 a.m.