Learn R Programming

sasif (version 0.1.2)

if_do: Create a SAS-style IF rule

Description

Creates a mutually exclusive IF rule for use inside data_step().

Usage

if_do(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.