Learn R Programming

SSBtools (version 1.8.0)

output_term_labels: 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)

Value

vector of term labels

Arguments

x

data.frame

See Also

formula_term_labels(), tables_by_formulas()

Examples

Run this code

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)

Run the code above in your browser using DataLab