I think you are using the wrong function. See ?strftime
Try
dataset=c("1/2/1978")
strptime(dataset,"%d/%m/%Y")
John Kane
Kingston ON Canada
> -Original Message-
> From: rrast...@gmail.com
> Sent: Fri, 3 Feb 2012 14:34:09 +0100
> To: r-help@r-project.org
On 02/03/2012 03:34 PM, Ana wrote:
> Hi
>
> I have many excel files were the Date field was not declared as date,
> so the dates look like this: 1/2/1978
> I know that the format is day/month/year
>
> How can I make R change this to Date format?
>
> If I use strftime, I get wrong dates:
>
> dat
On Fri, 3 Feb 2012, Ana wrote:
Hi
I have many excel files were the Date field was not declared as date,
so the dates look like this: 1/2/1978
I know that the format is day/month/year
How can I make R change this to Date format?
If I use strftime, I get wrong dates:
So use as.Date to convert
Hi
I have many excel files were the Date field was not declared as date,
so the dates look like this: 1/2/1978
I know that the format is day/month/year
How can I make R change this to Date format?
If I use strftime, I get wrong dates:
dataset=c("1/2/1978")
strftime(dataset,"%d/%m/%Y")
"19/02/0
4 matches
Mail list logo