composeFormula: Compose a formula string

View source: R/utils.R

composeFormulaR Documentation

Compose a formula string

Description

Compose a formula string

Usage

composeFormula(lht, rht)

Arguments

lht

list of character vectors making up the left

rht

list of character vectors making up the right

Value

a string representation of the formula

Examples


composeFormula(list('a', 'b', c('a', 'b')))
# ~a+b+a:b

composeFormula('f', list('a', 'b', c('a', 'b')))
# "f~a+b+a:b"

composeFormula('with spaces', list('a', 'b', c('a', 'b')))
'`with spaces`~a+b+a:b'


jmvcore documentation built on Sept. 12, 2024, 7:32 a.m.