## Given an observed monthly time series that starts in 1990.1 and is of length 120:
# Which is the position of the data observed in 1991.11?
obs <- ysooys(yso=c(1991,11), t0=c(1990,1), N=120, s=12)$out
# Which is the date of the 23rd observation?
ys <- ysooys(yso=23, t0=c(1990,1), N=120, s=12)$out
Run the code above in your browser using DataLab