What you intend strikes me as being pretty silly. Do not expect R to work magic for you. Even if there were such a function as you desire in R, the results it would give would be effectively meaningless for data such as you exhibited. cheers, Rolf Turner rolf at math.unb.ca