The code changes a single row; that's why I said you'd have to adapt it to your
application.
> On Oct 9, 2014, at 3:10 AM, Frederic Ntirenganya wrote:
>
> Hi Amos,
>
> This approach gives a column of NA.
>
>> On Wed, Oct 8, 2014 at 10:20 PM, Amos B. Elberg
>> wrote:
>> You can adapt: f
Hi Amos,
This approach gives a column of NA.
On Wed, Oct 8, 2014 at 10:20 PM, Amos B. Elberg
wrote:
> You can adapt: format(as.Date(paste(Year, sep = "-", ifelse(Year %% 4 ==
> 0, Start, ifelse(Start > 59, Start - 1, Start))), "%Y-%j"), "%b %d”)
>
> But 60% of the dates in your data.frame wil
You can adapt: format(as.Date(paste(Year, sep = "-", ifelse(Year %% 4 == 0,
Start, ifelse(Start > 59, Start - 1, Start))), "%Y-%j"), "%b %d”)
But 60% of the dates in your data.frame will then be wrong.
From: Frederic Ntirenganya
Reply: Frederic Ntirenganya >
Date: October 8, 2014 at 9:38:3
This is like using the formula Area=3*r^2 for the area of a circle... you can
figure out a way to do it but it is still wrong. Why not leave the data as day
of year instead of misleading anyone who looks at it?
---
Jeff Newmi
4 matches
Mail list logo