I have this csv, I read it from excel and paste the values here:
After being read from a csv with read.csv("My_CSV.csv")
, this is the table I get:
nobleDispoCode callEndDate
1 NS 25:17.3
2 NS 30:18.3
3 DC 40:44.3
4 NS 49:25.3
5 LM 50:05.2
6 NS 32:41.6
I tried this suggested line, but still doesn't appear the date:
readLines("My_CSV.csv", 10)
[1] "nobleDispoCode,callEndDate" "NS,7/12/18 17:25" "NS,7/16/18 11:30"
[4] "DC,7/16/18 11:40" "NS,7/16/18 11:49" "LM,7/16/18 11:50"
My problem is that for example when I open the csv on excel the real value of "callEndDate" is "7/12/2018 5:25:17 PM", but it's read as "25:17.3"
Or for example the second row, the real value is "7/16/2018 11:30:18 AM" but it's read as "30:18.3"
Please, how can I use read.csv
to parse a date time column to the right format? Any help will be greatly appreciated.