Best to jump straight to code:

xx = xts(1:10, as.Date("2000-01-01")+1:10)
xx[c("2000-01-04", "2000-01-03", "2000-01-03"), which.i=T]
[1] 2 2 3
xx[as.Date(c("2000-01-04", "2000-01-03", "2000-01-03")), which.i=T]
[1] 2 3

Btw ... hi :)

Is this working as designed? And second, is it possible to get the integer
indexes, with repetitions preserved, without ordering them? In other words,
how to get 3 2 2 without looping and independent of the type of the index?

Thanks in advance, and Merry Christmas!
Ivan

	[[alternative HTML version deleted]]

