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 }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.