sub_specials | R Documentation |
model.frame
)
(Generalized from lme4
's subbars
function.)Substitute safe chars (+) for specials (for use in model.frame
)
(Generalized from lme4
's subbars
function.)
sub_specials(
term,
specials = c("|", "||", "s"),
keep_args = c(2L, 2L, NA_integer_)
)
term |
formula or term in a formula |
specials |
names of specials to process |
keep_args |
number of arguments to retain (matching |
a term or formula with specials replaced by +
(and extra arguments dropped)
sub_specials( ~ s(a, k=4))
sub_specials( ~ (1|x) + (a + b || y) + s(a, k=4))
sub_specials(Reaction ~ s(Days) + (1 + Subject))
sub_specials(~ s(cos((y^2*3)/2), bs = "tp"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.