Learn R Programming

Tplyr (version 1.2.1)

treat_var: Return or set the treatment variable binding

Description

Return or set the treatment variable binding

Usage

treat_var(table)

set_treat_var(table, treat_var)

Value

For tplyr_treat_var the treat_var binding of the tplyr_table

object. For set_tplyr_treat_var the modified object.

Arguments

table

A tplyr_table object to set or return treatment variable the table is split by.

treat_var

Variable containing treatment group assignments. Supply unquoted.

Examples

Run this code
tab <- tplyr_table(mtcars, cyl)

set_treat_var(tab, gear)

Run the code above in your browser using DataLab