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
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
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
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
> 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
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,
6 matches
Mail list logo