R/indx.comp.R

Defines functions indx.comp

indx.comp <- function(Xmat){
  p <- ncol(Xmat)
  IDX <- NULL
  for (j in 1:p){
    idxj <- list(which(!is.na(Xmat[,j])))
    IDX <- c(IDX,idxj)
  }
  IDX
}

Try the ILSE package in your browser

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

ILSE documentation built on Jan. 31, 2022, 9:06 a.m.