The following functions may help;
strptime()
ISOdate()
Muhammad
Hosack, Michael wrote:
R community:
Hello, I would to like to convert a character date variable from %m/%d/%Y to
%m/%d/%y. Any advice would be greatly appreciated. I have tried functions for
changing the formatting and rem
try this:
> x <- c('1/1/1970','12/13/2010', '2/3/2001')
> gsub("(\\d+/\\d+/)\\d\\d(\\d\\d )",
> "\\1\\2",
x)
[1] "1/1/70" "12/13/10" "2/3/01"
On Tue, Mar 23, 2010 at 10:10 AM, Hosack, Michael wrote:
> R community:
>
> Hello, I would to like to convert a character date variable from %m/%d/%Y
el
Sent: Tuesday, March 23, 2010 10:11 AM
To: R-help@r-project.org
Subject: [R] Converting date format
R community:
Hello, I would to like to convert a character date variable from
%m/%d/%Y to %m/%d/%y. Any advice would be greatly appreciated. I have
tried functions for changing the formatting an
R community:
Hello, I would to like to convert a character date variable from %m/%d/%Y to
%m/%d/%y. Any advice would be greatly appreciated. I have tried functions for
changing the formatting and removing the unnecessary digits without success.
Mike
4 matches
Mail list logo