R/chord.R

Defines functions c.chord is.chord

Documented in is.chord

#' Is chord
#'
#' Checks if an object is of class "chord".
#'
#' @param x Object to check.
#' @return Logical scalar.
#'
#' @export
is.chord <- function(x) {
  is(x, "chord")
}

#' @export
c.chord <- function(...) {
  stop("c() function is undefined for chords, for safety reasons...")
}
pmcharrison/hrep documentation built on Feb. 18, 2024, 2:33 a.m.