model2df {businessPlanR}R Documentation

Convert model from list to data frame

Description

Converting a model from list format into a data frame makes it easier to work with nested sub-positions, and to check the model for completeness.

Usage

model2df(model = get_model(), factorize = TRUE)

## S4 method for signature 'list'
model2df(model = get_model(), factorize = TRUE)

Arguments

model

A named list describing a transaction model.

factorize

Logical, whether columns not representing a transaction type should be returned as a factor.

Details

The list provided must have named entries which form the top level of the transaction model. Values are in turn a list with optional named arguments:

Value

A data frame, representing the model structure that was defined with table_model.


[Package businessPlanR version 0.1-0 Index]