R/length.StQT.R

#' @title Method \code{length} for the class \linkS4class{StQT}
#'
#' @description \code{length} gets the number of rules of a StQT object.
#'
#' This method overloads the method \code{\link{length}}.
#'
#' @param x Object of class \code{StQT}.
#'
#' @return Number of rules of a StQT object.
#'
#' @examples
#' x <- 1
#'
#' @include StQT-class.R getRules.R
#'
#' @export
setMethod(
  f = "length",
  signature = c("StQT"),
  definition = function(x){
    return(nrow(getRules(x)))
  }
)
Luis-Sanguiao/StQT documentation built on May 7, 2019, 2:03 p.m.