call_condition_choice {teal.transform}R Documentation

Choices condition call

Description

Compose choices condition call from inputs.

Usage

call_condition_choice(varname, choices)

Arguments

varname

(name or call or character(1)) name of the variable.

choices

(vector) varname values to match using the == (single value) or %in% (vector) condition.

Details

choices can be vector of any type but for some output might be converted:

One has to be careful here as formatted date-time variable might loose some precision (see format argument in format.POSIXlt() and output call could be insufficient for exact comparison. In this case one should specify ⁠varname = trunc(<varname>)⁠ and possibly convert choices to character).

Value

call.


[Package teal.transform version 0.6.0 Index]