Description Usage Arguments Examples
Tools for constructing formula terms
1 2 3 4 5 6 7 | binaryLangOp(arg1, arg2, Op)
unaryLangOp(arg, Op)
listLangOp(args, Op)
mkBinaryLangOp(Op)
|
arg1,arg2,arg |
a language object or length-one character vector |
args |
list of language objects and/or length-one character objects |
Op |
name of an operator (as language or character) |
1 2 3 4 5 | (oneTerm <- binaryLangOp("a", "b", "|"))
(parenTerm <- unaryLangOp(oneTerm, "("))
(manyTerms <- mapply(binaryLangOp, "x", letters[1:5], "|", USE.NAMES = FALSE))
(manyParenTerms <- lapply(manyTerms, unaryLangOp, "("))
listLangOp(manyParenTerms, "+")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.