constructFormula {jmvcore} | R Documentation |
Construct a formula string
Description
Construct a formula string
Usage
constructFormula(dep = NULL, terms)
Arguments
dep |
the name of the dependent variable |
terms |
list of character vectors making up the terms |
Value
a string representation of the formula
Examples
constructFormula(terms=list('a', 'b', c('a', 'b')))
# a+b+a:b
constructFormula('f', list('a', 'b', c('a', 'b')))
# "f~a+b+a:b"
constructFormula('with spaces', list('a', 'b', c('a', 'b')))
'`with spaces`~a+b+a:b'
[Package jmvcore version 2.4.7 Index]