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
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
: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 and removing the unnecessary
digits
try this:
x - c('1/1/1970','12/13/2010', '2/3/2001')
gsub((\\d+/\\d+/)\\d\\d(\\d\\d file://d+///d+/)//d//d(//d//d),
\\1\\2file://0.0.0.1//2,
x)
[1] 1/1/70 12/13/10 2/3/01
On Tue, Mar 23, 2010 at 10:10 AM, Hosack, Michael mhos...@state.pa.uswrote:
R community:
Hello, I would to like to
4 matches
Mail list logo