Learn R Programming

reformulas (version 0.4.3)

no_specials: Drop 'specials' from a formula

Description

Drop 'specials' from a formula

Usage

no_specials(term, specials = c("|", "||", "s"))

Value

a call or language object (or list) with specials removed

Arguments

term

a term or formula or list thereof

specials

function types to drop

Examples

Run this code
no_specials(findbars_x(~ 1 + s(x) + (f|g) + diag(x|y)))
no_specials(~us(f|g))
no_specials(~us(f|g, extra_arg))

Run the code above in your browser using DataLab