Relative times
Description
Relative times from 1 to the number of observed years are computed. Duplicated times can be sinchronized by replacing unique values with NA.
Usage
1 
Arguments
x 

only.dup 

Value
data.frame
object with the initial vector and its formation times.
Author(s)
Wilson Lara <wilarhen@gmail.com>, Felipe Bravo <fbravo@pvs.uva.es>
Examples
1 2 3 4 5 6 7 8 9 10  ## row names of a vector
fy < function(y,span){(y  span):y}
x < c(fy(2005,5),fy(2007,10))
## (not run) Simulating the vector
r < abs(rnorm(length(x)))
names(r) < x
## (not run) computing relative times:
rtimes(r,only.dup = TRUE)
## (not run) Extracting only duplicated times:
na.omit(rtimes(r,only.dup = TRUE))
