View source: R/Extend0fromModelMatrixInput.R
| Extend0fromModelMatrixInput | R Documentation |
Extend0fromModelMatrixInput() is a specialized function that extends the input data based on the provided parameters.
It is designed specifically to work with input to ModelMatrix().
Extend0fromModelMatrixInput(
data,
freqName,
hierarchies,
formula,
dimVar,
extend0,
dVar = NULL,
avoidHierarchical = FALSE,
hierarchical_extend0 = !avoidHierarchical & is.null(hierarchies),
...
)
IsExtend0(extend0)
data |
Input data frame |
freqName |
Name of (existing) frequency variable |
hierarchies |
List of hierarchies, which can be converted by |
formula |
A model formula |
dimVar |
The main dimensional variables and additional aggregating variables. This parameter can be useful when hierarchies and formula are unspecified. |
extend0 |
When |
dVar |
Optional. Specifies the |
avoidHierarchical |
Parameter passed to |
hierarchical_extend0 |
Specifies the |
... |
Further arguments to underlying functions. |
Extend0fromModelMatrixInput(): The main function that processes and extends input data according to the specified parameters.
IsExtend0(): A helper function that evaluates the extend0 parameter and returns TRUE or FALSE, indicating whether the data should be extended.
Extended data frame
Extend0()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.