R/eLP.poly.R

Defines functions eLP.poly

Documented in eLP.poly

eLP.poly <-
function(X,m){
  X <- as.matrix(X)
  Xcols<-split(X, rep(1:ncol(X), each = nrow(X)))
  Tcols<-lapply(Xcols,eLP.univar,m)
  colname_list<-c()
  for(i in 1:length(Tcols)){
    mi<-ncol(Tcols[[i]])
    colname_list<-c(colname_list,paste0('X',i,'T',1:mi))
  }
  T0<-do.call(cbind,Tcols)
  colnames(T0)<-colname_list
  return(T0)
}

Try the LPRelevance package in your browser

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

LPRelevance documentation built on May 18, 2022, 9:05 a.m.