RE: [R] years from as.POSIXlt

2004-03-10 Thread Christophe Declercq
Petzoldt Cc : [EMAIL PROTECTED] Objet : Re: [R] years from as.POSIXlt On Wed, 10 Mar 2004, Thomas Petzoldt wrote: (without copying me) Prof Brian Ripley wrote: See ?julian, which says Note: Other components such as the day of the month or the year are very

Re: [R] years from as.POSIXlt

2004-03-09 Thread Thomas Petzoldt
Prof Brian Ripley wrote: See ?julian, which says Note: Other components such as the day of the month or the year are very easy to computes: just use 'as.POSIXlt' and extract the relevant component. Hello, unfortunately not all mentioned functions work on all machines. Where

Re: [R] years from as.POSIXlt

2004-03-09 Thread Thomas Petzoldt
as.numeric(format(x, f=%j)) which is the right code, works perfectly, too. Thomas P. __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] years from as.POSIXlt

2004-03-09 Thread Gabor Grothendieck
since January 1, 1970. --- Date: Wed, 10 Mar 2004 00:04:30 +0100 From: Thomas Petzoldt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [R] years from as.POSIXlt Prof Brian Ripley wrote: See ?julian, which says Note: Other components such as the day of the month

Re: [R] years from as.POSIXlt

2004-03-09 Thread Prof Brian Ripley
On Wed, 10 Mar 2004, Thomas Petzoldt wrote: as.numeric(format(x, f=%j)) which is the right code, works perfectly, too. but the recommended procedure is on the help page ?julian, and of course works perfectly. Just use 1+x$yday if you want 1-based day of the year. -- Brian D. Ripley,

Re: [R] years from as.POSIXlt

2004-03-09 Thread Prof Brian Ripley
On Wed, 10 Mar 2004, Thomas Petzoldt wrote: (without copying me) Prof Brian Ripley wrote: See ?julian, which says Note: Other components such as the day of the month or the year are very easy to computes: just use 'as.POSIXlt' and extract the relevant

[R] years from as.POSIXlt

2004-03-08 Thread Christian Schulz
Hi, how it's possible to extract the year and the number of days from Julian date. i'm little confused about the last two functions and ?years . EDATE comes from sqlQuery with as.is=T EDATE - as.POSIXlt(datvears$ENROLLDAY) Many thanks, Christian EDATE[1:5] [1] 2000-06-30 11:25:01