Re: [R] why there is no quarters?

2013-12-16 Thread Pancho Mulongeni
Hi, I also would like to use quarters. I think a work around would be to just label each record in the dataframe by its quarter. i.e. you add a factor called 'Quarter' with four levels (Q1 to Q4) for each row and you assign the level based on the month of the date. You can easily do this with

Re: [R] why there is no quarters?

2013-12-16 Thread Dániel Kehl
To: 1248283...@qq.com Cc: r-help@r-project.org Tárgy: Re: [R] why there is no quarters? Hi, I also would like to use quarters. I think a work around would be to just label each record in the dataframe by its quarter. i.e. you add a factor called 'Quarter' with four levels (Q1 to Q4) for each row

Re: [R] why there is no quarters?

2013-12-16 Thread Marc Schwartz
On Dec 15, 2013, at 6:11 AM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 13-12-15 6:43 AM, 水静流深 wrote: seq(as.Date(2001/1/1),as.Date(2010/1/1),years) seq(as.Date(2001/1/1),as.Date(2010/1/1),weeks) seq(as.Date(2001/1/1),as.Date(2010/1/1),days) why there is no

Re: [R] why there is no quarters?

2013-12-16 Thread Marc Schwartz
[p.mulong...@namibia.pharmaccess.org] Küldve: 2013. december 16. 13:05 To: 1248283...@qq.com Cc: r-help@r-project.org Tárgy: Re: [R] why there is no quarters? Hi, I also would like to use quarters. I think a work around would be to just label each record in the dataframe by its quarter. i.e

Re: [R] why there is no quarters?

2013-12-16 Thread arun
Hi, Also, library(zoo) format.yearqtr(x) identical(gsub(\\-, ,xqq),format.yearqtr(x)) #[1] TRUE A.K. On Monday, December 16, 2013 8:01 AM, Marc Schwartz marc_schwa...@me.com wrote: On Dec 15, 2013, at 6:11 AM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 13-12-15 6:43 AM, 水静流深

[R] why there is no quarters?

2013-12-15 Thread ????????
seq(as.Date(2001/1/1),as.Date(2010/1/1),years) seq(as.Date(2001/1/1),as.Date(2010/1/1),weeks) seq(as.Date(2001/1/1),as.Date(2010/1/1),days) why there is no seq(as.Date(2001/1/1),as.Date(2010/1/1),quarters) ? [[alternative HTML version deleted]]

Re: [R] why there is no quarters?

2013-12-15 Thread Duncan Murdoch
On 13-12-15 6:43 AM, 水静流深 wrote: seq(as.Date(2001/1/1),as.Date(2010/1/1),years) seq(as.Date(2001/1/1),as.Date(2010/1/1),weeks) seq(as.Date(2001/1/1),as.Date(2010/1/1),days) why there is no seq(as.Date(2001/1/1),as.Date(2010/1/1),quarters) ? There's no need for it. Just use months, and take