Skip to content
Prev 304790 / 398503 Next

Create a function to number each repeated visit or measurements

For unsorted x, or for a factor x with unused levels,
  ave(integer(length(x)), x, FUN=seq_along) - 1
works.

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com