[R] transforming dates
reichm@@j m@iii@g oii sbcgiob@i@@et
reichm@@j m@iii@g oii sbcgiob@i@@et
Sun Nov 3 03:40:50 CET 2019
R-Help Forum
I have a data set that contains a date field but the dates are in two
formats
11/7/2016 dd/mm/yyyy
14-07-16 dd-mm-yy
How would I go about correcting this problem.
I'm thinking something like ..
for (i in 1:length(myDat$date)){
if ((myDat$date [i]) = <some sort of format> {
<format one way, <else format another way>
}
}
Or something like this
Sincerely
Jeff Reichman
(314) 457-1966
[[alternative HTML version deleted]]
More information about the R-help
mailing list