Re: [R] How to get the day of the year

2008-10-01 Thread Solene Goy
Thanks a lot to all of you, it works now Cheers, Solène Goy> Subject: Re: [R] How to get the day of the year> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> CC: r-help@r-project.org> Date: Wed, 1 Oct 2008 13:52:09 +0100> > On Wed, 2008-10-01 at 08:42 +, Solene

Re: [R] How to get the day of the year

2008-10-01 Thread Gavin Simpson
On Wed, 2008-10-01 at 08:42 +, Solene Goy wrote: > Hello, > I am new to R and I would like to get the day of the year from > numerous data in the following form: %a %d/%b/%Y %H:%M:%S (for > example from Tu 10/Jul/2007 21:59:13 I would like to get 191) > > Whatever I try, I get NAs. Tu isn't

Re: [R] How to get the day of the year

2008-10-01 Thread Henrique Dallazuanna
In addition to Richard, try this also: format(strptime(newdatestr, "%a %d/%b/%Y %H:%M:%S"), "%j") On Wed, Oct 1, 2008 at 5:42 AM, Solene Goy <[EMAIL PROTECTED]> wrote: > > Hello, > I am new to R and I would like to get the day of the year from numerous data > in the following form: %a %d/%b/%Y

Re: [R] How to get the day of the year

2008-10-01 Thread Ted Harding
On 01-Oct-08 10:44:10, [EMAIL PROTECTED] wrote: >> I am new to R and I would like to get the day of the year from >> numerous data in the following form: %a %d/%b/%Y %H:%M:%S (for >> example from Tu 10/Jul/2007 21:59:13 I would like to get 191) >> >> Whatever I try, I get NAs. > > The problem

Re: [R] How to get the day of the year

2008-10-01 Thread Richard . Cotton
> I am new to R and I would like to get the day of the year from > numerous data in the following form: %a %d/%b/%Y %H:%M:%S (for > example from Tu 10/Jul/2007 21:59:13 I would like to get 191) > > Whatever I try, I get NAs. The problem is th 'Tu' bit. Abbreviated day-of-week names and three

[R] How to get the day of the year

2008-10-01 Thread Solene Goy
Hello, I am new to R and I would like to get the day of the year from numerous data in the following form: %a %d/%b/%Y %H:%M:%S (for example from Tu 10/Jul/2007 21:59:13 I would like to get 191) Whatever I try, I get NAs. Well... I need your help, please! Thanks in advance Yours sincerely,