[R] Working with date
arun
smartpink111 at yahoo.com
Wed Dec 26 19:58:22 CET 2012
HI,
format(asd,"%d/%m/%Y")
#[1] "03/01/2012"
A.K.
----- Original Message -----
From: Ron Michael <ron_michael70 at yahoo.com>
To: "r-help at r-project.org" <r-help at r-project.org>
Cc:
Sent: Wednesday, December 26, 2012 1:31 PM
Subject: [R] Working with date
Hi,
Let say I have a date variable:
> asd <- as.Date("2012-01-03")
> asd
[1] "2012-01-03"
Now, I want to express this date like 3/1/2012.
can somebody help me how to achieve that?
Thanks,
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list