Skip to contents

add_var() is deprecated. Supply targets to add_model() instead.

Usage

add_var(rec, var_info)

Arguments

rec

A Recipe object (must not be prepped).

var_info

A character string of column names corresponding to variables that will be used in any context.

Value

A Recipe object.

Examples

data(metaHIV_phy)
rec <- recipe(metaHIV_phy)
rec <- suppressWarnings(add_var(rec, var_info = "RiskGroup2"))
rec
#> ── DAR Recipe ──────────────────────────────────────────────────────────────────
#> Inputs:
#> 
#>       phyloseq object with 451 taxa and 156 samples 
#>       variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) 
#>       undefined taxonomic level. Use add_model() to define the analysis! 
#>