has_non_basis: test if a formula has terms not created by [s_date_Eti() or...

View source: R/utils.R

has_non_basisR Documentation

test if a formula has terms not created by [s_date_Eti() or s_date_FPR()

Description

test if a formula has terms not created by [s_date_Eti() or s_date_FPR()

Usage

has_non_basis(form)

Arguments

form

a formula

Value

logical TRUE (if having terms not created by [s_date_Eti() or s_date_FPR()); FALSE otherwise.

Examples

form1 <- as.formula(~ -1+s_date_FPR(DATE,Y,basis = "ps",10) + as.factor(SITE))
form2 <- as.formula(~ -1+s_date_FPR(DATE,Y,basis = "ps",10))
form3 <- as.formula(~ s_date_FPR(DATE,Y,basis = "ps",10))

has_non_basis(form1)
has_non_basis(form2)
has_non_basis(form3)


zhenkewu/baker documentation built on March 17, 2022, 9:54 p.m.