treat_var: Return or set the treatment variable binding

View source: R/table_bindings.R

treat_varR 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)


Tplyr documentation built on May 29, 2024, 10:37 a.m.