anySpecial | R Documentation |
Detect whether there are any 'specials' in a formula term
anySpecial(term, specials = findReTrmClasses(), fast = FALSE)
term |
formula term |
specials |
values to detect |
fast |
(logical) use quick (syntactic) test for presence of specials? |
logical value
## should only detect s as the head of a function, s(...)
anySpecial(~diag(1))
anySpecial(~diag)
anySpecial(~diag[[1]])
anySpecial(~diag[1])
anySpecial(~s)
anySpecial(~s(hello+goodbye,whatever))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.