output_term_labels {SSBtools} | R 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)
[Package SSBtools version 1.8.0 Index]