Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


crunch (version 1.26.3)

generateWeightEntry: 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

Run this code
# NOT RUN {
validateWeightExpression(ds$var ~ c(10, 30, 60))
# }

Run the code above in your browser using DataLab