treat_var {Tplyr}R Documentation

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)

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.

Value

For tplyr_treat_var the treat_var binding of the tplyr_table object. For set_tplyr_treat_var the modified object.

Examples

tab <- tplyr_table(mtcars, cyl)

set_treat_var(tab, gear)


[Package Tplyr version 1.2.1 Index]