vars_to_hierarchies: Transform hierarchies coded as Variables to "to-from" format

View source: R/hierarchies_as_vars.R

vars_to_hierarchiesR Documentation

Transform hierarchies coded as Variables to "to-from" format

Description

A kind of reverse operation of hierarchies_as_vars

Usage

vars_to_hierarchies(var_hierarchies)

Arguments

var_hierarchies

As output from hierarchies_as_vars

Value

List of hierarchies

Examples


a <- hierarchies_as_vars(list(f = 
       c("AB = A + B", "CD = C + D", "AC = A + C", "ABCD = AB + CD")))
a

vars_to_hierarchies(a)

SSBtools documentation built on April 3, 2025, 5:38 p.m.