search for: transforamtion

Displaying 1 result from an estimated 1 matches for "transforamtion".

Did you mean: tranformation
2009 Mar 24
2
two different date formats in the same variable
...uot;%m/%d/%Y") strptime(x,"%m/%d/%Y") as.Date(x, "%m/%d/%Y") But what happens when a few of the entries get messed up because they are actually formatted %m/%d/%y. Is there a robust date formatter? Alternatively how would one code (presumably using regular expressions) a transforamtion or substitution only on the errant entries and thereby turn 06/25/04 into 06/25/2004 and 03/03/59 into 03/03/1959? sessionInfo() R version 2.8.1 (2008-12-22) i386-pc-mingw32 Farrel Buchinsky