Learn R Programming

campsis (version 1.9.0)

.auto_strata: Detect VPC stratification variable automatically.

Description

Returns a named character vector suitable for vpcPlot's strata argument (length 0 or 1), or NULL when no stratification is warranted. ARM is preferred over SCENARIO when both are multi-valued.

Usage

.auto_strata(x)

Value

a named character vector or NULL

Arguments

x

a data frame (typically std_campsis_tbl)