## Climatic records of monthly precipitations and temperatures
data(PTclim05,envir = environment())
## Making year 1955 in plot 'P16106'to begin on 'April'
cl1 <- splitFrame(PTclim05,'year')[['P16106.1955']]
cl2 <- moveYr(cl1,ini.mnt = 4)
head(cl2)
## a simple vector of years
yr <- rep(2005,12)
names(yr) <- month.abb[1:12]
moveYr(yr)
Run the code above in your browser using DataLab