Skip to content
Prev 155900 / 398503 Next

Truncating dates (and other date-time manipulations)

Not really the ceiling and floor, though I haven't tried your code
(and my brain isn't at 100% capacity today to simply parse the code in
my head :) )

Though I think ?firstof and ?lastof  as well as startof/endof might be
something along those lines.  ?to.period has the ability to change
periodicity of a series (price or OHLCV-style price). Internal to that
is a method to re-align the output series:
To adjust the final indexing style, it is possible to set
     'indexAt' to one of the following: 'yearmon', 'yearqtr',
     'firstof', 'lastof', 'startof', or 'endof'.  The final index will
     then be 'yearmon', 'yearqtr', the first time of the period, the
     last time of the period, the starting time in the data for that
     period, or the ending time in the data for that period,
     respectively.

Might that be what you are after (not the actual implementation per
se, but the spirit).

BTW, I am philosophically opposed to typing :)

Actually the chartSeries stuff is quite dynamic (and no more
specialized IMO than boxplot et al) --- take a look.

Jeff
On Fri, Sep 12, 2008 at 11:16 AM, hadley wickham <h.wickham at gmail.com> wrote:

  
    

Thread (31 messages)

Hadley Wickham Truncating dates (and other date-time manipulations) Sep 11 Whit Armstrong Truncating dates (and other date-time manipulations) Sep 11 Hadley Wickham Truncating dates (and other date-time manipulations) Sep 11 Gabor Grothendieck Truncating dates (and other date-time manipulations) Sep 11 Whit Armstrong Truncating dates (and other date-time manipulations) Sep 11 Avram Aelony database table merging tips with R Sep 11 Aaron Mackey database table merging tips with R Sep 11 Aaron Mackey database table merging tips with R Sep 11 Avram Aelony database table merging tips with R Sep 11 Jeffrey J. Hallman Truncating dates (and other date-time manipulations) Sep 11 Aaron Mackey database table merging tips with R Sep 11 Coey Minear database table merging tips with R Sep 11 Coey Minear database table merging tips with R Sep 11 Hadley Wickham Truncating dates (and other date-time manipulations) Sep 11 Hadley Wickham Truncating dates (and other date-time manipulations) Sep 11 Hadley Wickham Truncating dates (and other date-time manipulations) Sep 11 Marc Schwartz Truncating dates (and other date-time manipulations) Sep 11 Hadley Wickham Truncating dates (and other date-time manipulations) Sep 11 Moshe Olshansky database table merging tips with R Sep 11 Moshe Olshansky database table merging tips with R Sep 11 Gabor Grothendieck Truncating dates (and other date-time manipulations) Sep 11 Hadley Wickham Truncating dates (and other date-time manipulations) Sep 11 Gabor Grothendieck Truncating dates (and other date-time manipulations) Sep 11 Hadley Wickham Truncating dates (and other date-time manipulations) Sep 11 Gabor Grothendieck Truncating dates (and other date-time manipulations) Sep 11 Thomas Lumley database table merging tips with R Sep 11 Jeffrey J. Hallman Truncating dates (and other date-time manipulations) Sep 12 Jeff Ryan Truncating dates (and other date-time manipulations) Sep 12 Jeff Ryan Truncating dates (and other date-time manipulations) Sep 12 Hadley Wickham Truncating dates (and other date-time manipulations) Sep 12 Jeff Ryan Truncating dates (and other date-time manipulations) Sep 12