R/is.R

#' Tests for Objects
#' 
#' Test if an R object is of a class specific to the cpr package
#'
#' @author Peter DeWitt \email{dewittpe@gmail.com}
#'
#' @param x an R object
#'
#' @export
#' @rdname is
is.cpr_bs <- function(x) {
  inherits(x, "cpr_bs")
}

#' @export
#' @rdname is
is.cpr_bt <- function(x) {
  inherits(x, "cpr_bt")
}

#' @export
#' @rdname is
is.cpr_cp <- function(x) {
  inherits(x, "cpr_cp")
}

#' @export
#' @rdname is
is.cpr_cpr <- function(x) {
  inherits(x, "cpr_cpr")
}

#' @export
#' @rdname is
is.cpr_cn <- function(x) {
  inherits(x, "cpr_cn")
}

#' @export
#' @rdname is
is.cpr_cnr <- function(x) {
  inherits(x, "cpr_cnr")
}

Try the cpr package in your browser

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

cpr documentation built on May 1, 2019, 10:46 p.m.