R/getQ.R

##
## getQ Method for objects of class "CDEPD"
##
setMethod(f = "getQ", signature(object = "CDEPD"), definition = function(object){
  ans <- slot(object, "q")
  if(identical(nrow(ans), 1L)){
    ans <- matrix(c(ans), nrow = getK(object), ncol = ncol(ans), byrow = TRUE)
  }
  return(ans)
})

Try the TSSP package in your browser

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

TSSP documentation built on May 2, 2019, 4:56 p.m.