R/np.R

Defines functions np.list np.Pmat np.matrix np

#methods for np=============================
np <- function(object, ...) {UseMethod("np")}

np.matrix <-function(object){
  return(NCOL(object))
}

np.Pmat <- function(object){
  return(attr(object,which = "np"))
}

np.list <- function(object){
  return(sapply(object,function(x){np(x)}))
}
jaromilfrossard/permuco documentation built on July 2, 2022, 10:34 p.m.