Learn R Programming

tma (version 0.3.1)

rules: Capture Subsetting Rules as Expressions

Description

Allows users to supply conditions for subsetting rows from their data. The collected unevaluated expressions are intended to be used as the `hoo_rules` parameter in the `contexts()` function within the TMA workflow.

Usage

rules(...)

Value

A list of unevaluated expressions representing subsetting rules.

Arguments

...

Logical expressions specifying the conditions for subsetting data. These expressions are captured unevaluated and returned as a list.

Examples

Run this code

rules(
  modality %in% "chat" & chatGroup %in% UNIT$chatGroup & condition %in% UNIT$condition, 
  modality %in% "resource" & userID %in% UNIT$userID & condition %in% UNIT$condition
)

Run the code above in your browser using DataLab