how can I convert a vector of date string like c("October 1, 2014", "June 14, 2014")
to a vector of R Date
format?
I have a data.frame which one column is date string in the above format.
I would appreciate your help.
Thanks!
how can I convert a vector of date string like c("October 1, 2014", "June 14, 2014")
to a vector of R Date
format?
I have a data.frame which one column is date string in the above format.
I would appreciate your help.
Thanks!
Try:
Which gives:
Or
Which gives:
Benchmark
Which gives:
As per mentionned by @cory in the comments, use
?strptime
to get the format codes: