r - Strptime from factor variable in wrong format -
I am trying to use strptime () to parse the date with a component variable - but there is a hold My dates (wrongly) list day and month as a single instead of double digits. For example, my date is 5/5/2012 14:02 instead of 05/05/2012 14:02.
/% Y% H:% M ")
Is anyone sure?
capital y will:
< Code> test & lt; - "5/5/2012 14:02" Stratum (test, "% m /% d /% Y% H:% M") [1] "2012-05-05 14:02:00"
Comments
Post a Comment