generateWeightEntry: Generate entry for makeWeight

View source: R/weight.R

generateWeightEntryR Documentation

Generate entry for makeWeight

Description

Utility function to catch formula errors passed to makeWeight, and to generate the appropriate entry.

Usage

generateWeightEntry(expr)

Arguments

expr

An expression

Value

A list of the variable id and the target weights.

Examples

## Not run: 
validateWeightExpression(ds$var ~ c(10, 30, 60))

## End(Not run)

crunch documentation built on Aug. 31, 2023, 1:07 a.m.