R/slt.R

Defines functions slt

Documented in slt

slt<-function(ls,slot,index=NULL) {
        ind<-which(names(ls[[1]])==slot);
        if (is.null(index)) sc<-sapply(ls,function(x){x[[ind]]})
        else sc<-sapply(ls,function(x){x[[ind]][index] })
	return(sc)
}
Bioconductor-mirror/PSEA documentation built on June 10, 2017, 2:51 a.m.