Contact:

Skype: naught101

XMPP/Googletalk: naught101@jabber.org

13h
awarded Good Question
1d
comment Format date-time as seasons in R?
Not really sure if this is doing what I'm asking - see the edited-in example in the question.
1d
comment Find which season a particular date belongs to
Note that a lot of answers here are focussing on astronomical seasons (as are commonly used in Europe). In some places (like Australia), and also commonly in science, seasons are simply defined as three-month periods (DJF, MAM< JJA, SON), as this is easier to work with (and coincidentally more accurately represents the seasons by temperature, since there is a lag from the astronomical seasons). stackoverflow.com/questions/24946955 asks the question in this sense.
1d
comment Format date-time as seasons in R?
So did I, because the frigging internal representation of months in POSIXlt is 0-indexed, while the external representation is 1-indexed. Crazy. Anyway, I decided to go with mine, but only because it allows you to leave the results as dates, which is useful for my purposes.
1d
comment Format date-time as seasons in R?
Cool, nice one. I got started on this, and then saw the answer that you posted then deleted, so I wrote my own in the mean time. Yours is better in that it uses nicer season names, but I guess they're functionally more or less equivalent. I'll let the votes decide :)
1d
answered Format date-time as seasons in R?
1d
revised Format date-time as seasons in R?
provide example
1d
comment Format date-time as seasons in R?
The difftime basically turns December into January, right? But this won't work accurately, because each quarter is a different length, and the first quarter is a different length in leap-years.
1d
revised Date and time formating
simplify edit.
1d
asked Format date-time as seasons in R?
1d
awarded Supporter
2d
comment Vim-like history in bash?
Worth nothing that zsh contains exactly this functionality.
Jul
23
awarded Notable Question
Jul
23
revised How to subset data.frame by weeks and then sum?
fix indentation
Jul
23
comment Why do minor keys sound “sad”?
In particular, why is D minor the saddest of all keys? I weep instantly when I hear it, and I don't know why.
Jul
23
comment editing a dataframe in R invoking vi
Thank you for introducing me to this awesome function!
Jul
23
comment editing a dataframe in R invoking vi
Have you tried saving and quitting using :wq rather than the close button, or does that not work in macvim?
Jul
23
comment How can I group days into weeks?
Huh...so for Date vectors, this is about 30 times faster than Gavin's method. Gavin's method does relatively better for POSIXlt (only 7 times slower). For POSIXct vectors, this method only very marginally slower, however, Gavin's method is 690 times slower. Not sure if there are any other date-time storage mechanisms. It's a pity, because Gavin's method is more useful - it returns week-of-year, rather than week since starting date..
Jul
23
comment How can I group days into weeks?
This also works for datetime (POSIXct) objects, but it's in seconds, so you need to use %/% (7*24*60*60)
Jul
22
comment How to efficiently use Rprof in R?
There's a spelling mistake: 'aaply' - can't edit it just for that, but it makes it not work on copy-paste - would be good to fix it.
1 2 3 4 5