R/sldrop.R

sldrop<-function(statslist, varname, type = 1) 
{
    newstatsl <- statslist
    for (i in 1:length(statslist)) {
       vnms.ind<-dimnames(statslist[[i]][[type]])[[3]]
       vdrop<-which(vnms.ind%in%varname)
       newstatsl[[i]][[type]]<-statslist[[i]][[type]][,,-vdrop]
    }
    newstatsl
}

Try the informR package in your browser

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

informR documentation built on May 1, 2019, 9:22 p.m.