R/ranking.R

Defines functions ranking

ranking = function(data,numeric.info){
  if(length(numeric.info)>=2){
  order= apply(data[,numeric.info+1],2,rank)
  }
  else if(length(numeric.info==1)){
    order=rank(data[,numeric.info+1])
  }
  data[,numeric.info+1]=order
  
  return(list(data=data,order=order))
    
}

Try the Harvest.Tree package in your browser

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

Harvest.Tree documentation built on May 2, 2019, 3:31 p.m.