Learn R Programming

reformulas (version 0.2.0)

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))

Run the code above in your browser using DataLab