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

ensureValidCase

Validate case statements for case variables


Description

Validate case statements for case variables

Usage

ensureValidCase(case)

Arguments

case

a list for one case to test

List elements:

  1. id: an integer to use for this category when a case variable is made (default: none, one will automatically be assigned when the case variable is made)

  2. name: a character identifier for this case

  3. expression: a CrunchLogicalExpr that sets the conditions for the case, or "else"

  4. numeric_value: a numeric that is the value this case should take on when analyzing the data numerically (mean, standard deviation, etc.)

  5. missing a logical indicating if this case should be treated as missing


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.