R/getSameOrder.R

Defines functions getSameOrder

# Order function, if one matrix should be brought into the order of another one
getSameOrder <- function(x,y){
  newPos <- numeric(length(y))
  for(i in 1:length(y)){
    newPos[i] <- which(y[i]==x)
  }
  newPos
}
fischuu/Luke documentation built on Aug. 30, 2022, 10:07 a.m.