moveYr | R Documentation |
Monthly records in time-series replicates (usually of climate) are labeled for the years can begin in a month other than January.
moveYr(cd, ini.mnt = "Oct")
cd |
|
ini.mnt |
|
character
months as defined in
month.abb
or month.name
.
data.frame
object with the months being numeric
values and the years beginning at ini.mnt
argument.
Wilson Lara <wilarhen@gmail.com> [aut, cre] (<https://orcid.org/0000-0003-3527-1380>), Felipe Bravo <fbravo@pvs.uva.es> [aut] (<https://orcid.org/0000-0001-7348-6695>)
## Climatic records of monthly precipitation sums and monthly
## average temperatures
data(PTclim05,envir = environment())
## Making the year 1955 in plot 'P16106' to begin on 'April'
cl1 <- slitFrame(PTclim05,c('year','plot'))[[1]]
cl2 <- moveYr(cl1,ini.mnt = 'Mar')
head(cl2)
## a simple vector of years
yr <- rep(2005,12)
names(yr) <- month.abb[1:12]
moveYr(yr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.