Skip to contents

S7 class for HESPER skip logic (SL)

Usage

SL(
  hesper_var = character(0),
  subset_var = character(0),
  subset_vals = logical(0)
)

Arguments

hesper_var

(character[1]) Name of the HESPER variable.

subset_var

(character[1]) Name of the subset variable.

subset_vals

(character[1+]) Values in the subset variable that are skipped.

Details

The SL class is designed to encapsulate the properties of a skip logic rule in HESPER. It includes the name of the HESPER variable, the name of the subset variable, and the values in the subset variable. The class validates that:

  • The hesper_var property is a valid HESPER variable.

  • The subset_var property is a character string.

  • The subset_vals property is a vector with at least one value.