R/rwt.R

rwt <-
function(d){
  
  tRank <- function(x){
    # n<-length(x)
    rt <- rank(x, ties.method= "random")
    return(rt)
  }
  
  # rd <- apply(t(d),1,tRank)
  rd <- apply(d,2,tRank)
  return(rd)
}

Try the matie package in your browser

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

matie documentation built on May 2, 2019, 3:52 a.m.