composeFormula: Compose a formula string

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Compose a formula string

Usage

1
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

1
2
3
4
5
6
7
8
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 Nov. 16, 2019, 10:01 p.m.