R/orderList.R

# Order the list of interactions regarding MI values.

orderList <- function(mylist, colindx=1, decreasing=TRUE)
{
  
  if(decreasing==TRUE){ 
    yt<-as.data.frame(mylist)  
    maxM <- yt[order(yt[,colindx], decreasing=TRUE),] 
  }
  
  if(decreasing==FALSE){ 
    yt<-as.data.frame(mylist)  
    maxM <- yt[order(yt[,colindx], decreasing=FALSE),] 
  }
  return(maxM)
}

Try the dc3net package in your browser

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

dc3net documentation built on May 2, 2019, 10:14 a.m.