patterns {rmdl}R Documentation

Apply patterns to formulas

Description

The family of ⁠apply_*_pattern()⁠ functions that are used to expand fmls by specified patterns. These functions are not intended to be used directly but as internal functions. They have been exposed to allow for potential user-defined use cases.

Usage

apply_pattern(x, pattern)

apply_fundamental_pattern(x)

apply_direct_pattern(x)

apply_sequential_pattern(x)

apply_parallel_pattern(x)

apply_rolling_interaction_pattern(x)

Arguments

x

A tm object

pattern

A character string that specifies the pattern to use

Details

Currently supported patterns are: fundamental, direct, sequential, parallel.

Value

Returns a tbl_df object that has special column names and rows. Each row is essentially a precursor to a new formula.

These columns and rows must be present to be used with the fmls() function, and generally are the expected result of the specified pattern. They will undergo further internal modification prior to being turned into a fmls object, but this is an developer consideration. If developing a pattern, please use this guide to ensure that the output is compatible with the fmls() function.


[Package rmdl version 0.1.0 Index]