Displaying 2 results from an estimated 2 matches for "dec2006".
2007 Jun 13
5
Confusion with sapply
...ot;%m/%d/%Y"),by="months",len=4)[4])
)
Hence this simple function:
> mydate <- as.Date("2006-01-01")
>
> # Function to shift non-March company-reporting dates to March.
> Set2March <- function(xdate){
+ # Combines non-March months into March months:
+ # Dec2006 -> Mar2007
+ # Mar2006 -> Mar2006
+ # Jun2006 -> Mar2006
+ # Sep2006 -> Mar2006
+ # VERY Specific code.
+ Month <- format(xdate,"%m")
+ wDate <- month.day.year(julian(xdate))
+ if (Month=="12"){
+ wDate$year <- wDate$year + 1
+ wD...
2011 Jan 16
2
xyplot: modify axis tick marks
...163.2
Feb2005 8.4
Mar2005 82.4
Apr2005 81.7
May2005 331.1
Jun2005 82.3
Jul2005 104
Aug2005 58.5
Sep2005 175.7
Oct2005 314.5
Nov2005 362.9
Dec2005 166
Jan2006 454.4
Feb2006 115.5
Mar2006 83.1
Apr2006 239.8
May2006 205.7
Jun2006 236.8
Jul2006 153.8
Aug2006 127.3
Sep2006 83.3
Oct2006 102
Nov2006 185.6
Dec2006 765.9
Jan2007 450.1
Feb2007 105.5
Mar2007 269.1
Apr2007 240.2
May2007 127.2
Jun2007 139
Jul2007 141.7
Aug2007 190.7
Sep2007 149
Oct2007 237.2
Nov2007 367.9
Dec2007 468.6