Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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

## End(Not run)

crunch

Crunch.io Data Tools

v1.28.0
LGPL (>= 3)
Authors
Greg Freedman Ellis [aut, cre], Jonathan Keane [aut], Mike Malecki [aut], Neal Richardson [aut], Gordon Shotwell [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.