R/is.freqdom.R

Defines functions inClass

inClass = function(X,cls){
  !is.null(oldClass(X)) && (cls %in% oldClass(X))
}

#' Checks if an object belongs to the class \code{\link{freqdom}}.
#
#' @title Checks if an object belongs to the class freqdom
#' @param X some object
#' @return \code{TRUE} if \code{X} is of type \code{\link{freqdom}}, \code{FALSE} otherwise
#' @seealso \code{\link{freqdom}}, \code{\link{timedom}}, \code{\link{is.timedom}}
#' @export
#' @keywords classes
is.freqdom = function (X){
  inClass(X,'freqdom')
}

is.positiveint = function (n){
  is.numeric(n) && n > 0
}

Try the freqdom package in your browser

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

freqdom documentation built on Oct. 4, 2022, 5:05 p.m.