Learn R Programming

sasif (version 0.1.2)

if_independent: Create an independent SAS-style IF rule

Description

Creates an independent IF rule that is evaluated regardless of IF/ELSE chains.

Usage

if_independent(condition, ...)

Value

A rule object for data_step().

Arguments

condition

Logical condition evaluated on the data.table.

...

Named assignments to apply when condition is TRUE.