Re: [R] julian day form POSIXt object

2011-09-30 Thread maxbre
sorry, I managed to find the solution at last (by reading the help but sometime is really difficult!) Class POSIXlt is a named list of vectors representing yday 0–365: day of the year. another lesson learned bye -- View this message in context:

Re: [R] julian day form POSIXt object

2011-09-30 Thread maxbre
here is an alternative long and winded solution to the problem sticking on the julian function of chron package test$year - as.integer(as.character(test$date, %Y)) test$month - as.integer(as.character(test$date, %m)) test$day - as.integer(as.character(test$date, %d)) test$hour -

Re: [R] julian day form POSIXt object

2011-09-30 Thread Gabor Grothendieck
On Fri, Sep 30, 2011 at 4:47 AM, maxbre mbres...@arpa.veneto.it wrote: here is an alternative long and winded solution to the problem sticking on the julian function of chron package test$year - as.integer(as.character(test$date, %Y)) test$month - as.integer(as.character(test$date, %m))

Re: [R] julian day form POSIXt object

2011-09-30 Thread David Winsemius
On Sep 30, 2011, at 4:47 AM, maxbre wrote: here is an alternative long and winded solution to the problem sticking on the julian function of chron package test$year - as.integer(as.character(test$date, %Y)) test$month - as.integer(as.character(test$date, %m)) test$day -

[R] julian day form POSIXt object

2011-09-29 Thread maxbre
hello all, this is my reproducible example data frame test-structure(list(date = structure(c(1262300400, 1262304000, 1262304000, 1262307600, 1262307600, 1262311200, 1262311200, 1262314800, 1262314800, 1262318400, 1262318400, 1262322000, 1262322000, 1262325600, 1262325600, 1262329200,

Re: [R] julian day form POSIXt object

2011-09-29 Thread David Winsemius
On Sep 29, 2011, at 10:10 AM, maxbre wrote: hello all, this is my reproducible example data frame test-structure(list(date = structure(c(1262300400, 1262304000, 1262304000, 1262307600, 1262307600, 1262311200, 1262311200, 1262314800, 1262314800, 1262318400, 1262318400, 1262322000,

Re: [R] julian day form POSIXt object

2011-09-29 Thread maxbre
yes, you are perfectly right, sorry for that but for me was not so clear the error message! and the third code example I posted (not working either) should be of length one (if I'm not wrong again) but most of all what is not included in my reproducible example and get a bit confused my

Re: [R] julian day form POSIXt object

2011-09-29 Thread Jeff Newmiller
On Thu, 29 Sep 2011, maxbre wrote: yes, you are perfectly right, sorry for that but for me was not so clear the error message! and the third code example I posted (not working either) should be of length one (if I'm not wrong again) but most of all what is not included in my reproducible

Re: [R] julian day form POSIXt object

2011-09-29 Thread Prof Brian Ripley
On Thu, 29 Sep 2011, Jeff Newmiller wrote: On Thu, 29 Sep 2011, maxbre wrote: [With the context excised, something the posting guide expressly asks not be done.] yes, you are perfectly right, sorry for that but for me was not so clear the error message! A phrase involving pots and