powered by
Utility function to catch formula errors passed to makeWeight, and to generate the appropriate entry.
generateWeightEntry(expr)
A list of the variable id and the target weights.
An expression
if (FALSE) { validateWeightExpression(ds$var ~ c(10, 30, 60)) }
Run the code above in your browser using DataLab