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'


jamovi/jmvcore documentation built on April 24, 2024, 6:20 a.m.