output_term_labels: Extract vector of term labels from a data.frame

View source: R/output_term_labels.R

output_term_labelsR Documentation

Extract vector of term labels from a data.frame

Description

The data.frame is assumed to be have been constructed with ModelMatrix() functionality using the formula parameter.

Usage

output_term_labels(x)

Arguments

x

data.frame

Value

vector of term labels

See Also

formula_term_labels(), tables_by_formulas()

Examples


out <- model_aggregate(SSBtoolsData("magnitude1"), 
                       formula = ~eu:sector4 + geo * sector2, 
                       sum_vars = "value",
                       avoid_hierarchical = TRUE)
out
term_labels <- output_term_labels(out)
term_labels
cbind(term_labels, out)


SSBtools documentation built on June 19, 2025, 5:07 p.m.