search for: qtrend

Displaying 1 result from an estimated 1 matches for "qtrend".

Did you mean: trend
2010 Jun 09
0
Extract/format/show for S4 objects (Johann Hibschman)
...09") # months since the end of last year; date input format also works for my location [1] 3 6 9 12 attr(,"timeunits") [1] "months" > c((A-mondate("12/31/2009"))/3) # divide by 3 and remove the attribute and you have quarters [1] 1 2 3 4 > data.frame(QtrEnd=A, Amount=rep(1000,4)) QtrEnd Amount 1 03/31/2010 1000 2 06/30/2010 1000 3 09/30/2010 1000 4 12/31/2010 1000 If the date you are subtracting off is somewhere in the fourth quarter of 2009 but you still want to treat it as being representative of the fourth quarter, the floor function...