R/isFunctions.R

Defines functions is.formula

Documented in is.formula

# is.formula() -----------------------------------------------------------------

#' check whether an R object is a formula
#' @description check whether an R object is a formula
#' @usage is.formula(x)
#' @param x (ANY) an R object.
#' @returns TRUE/FALSE
#' @author Federico Blasi
is.formula <- function(x) {
  methods::is(x,"formula")
}

Try the cocons package in your browser

Any scripts or data that you put into this service are public.

cocons documentation built on April 4, 2025, 3:21 a.m.