Try:
vec1 <- c("4/15/11 11:49 AM", "6/12/12 2:30 PM", "5.6.11 2:51 PM")
vec2 <- gsub("[.]","/",vec1)
A.K.
On Thursday, March 13, 2014 9:57 AM, catalin roibu
wrote:
Dear all!
I have a new problem with the date format in a data frame. I have rainfall
records extracted from an automatic meteo s
I would use gsub() to change instances like 5.6.11 to 5/6/11.
Hopefully, both versions have month and day in the same order.
-Don
--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 3/13/14 6:57 AM, "catalin roibu" wrote:
>Dear
Dear all!
I have a new problem with the date format in a data frame. I have rainfall
records extracted from an automatic meteo station. In the same data frame
(with 1 records) the date is in 2 formats like that:
4/15/11 11:49 AM
5.6.11 2:51 PM
My question is how to modify date format for all
3 matches
Mail list logo