Hi Greg,
As the POSIX conversion part is already answered, I'll add:
as.Date("16/03/2021",format="%d/%m/%Y")
converts to Date object and
axis.Date()
will display dates on the date axis in base graphics.
Jim
On Tue, 16 Mar 2021, 08:33 Gregory Coats via R-help I store in a text file the dates
Gregory
myDat <- data.frame(datetime = c("2021-03-11 10:00:00","2021-03-11
14:17:00","2021-03-12 05:16:46","2021-03-12 09:17:02",
"2021-03-12 13:31:43","2021-03-12 22:00:32","2021-03-13
09:21:43","2021-03-13 13:51:12",
"2021-03-13 18:03:13","2021-03-13 22:20:28","2021-03-14
0
I store in a text file the dates and times that an event occurred.
How do I direct R to import these text characters, and store the year, month,
day, hour, minute, and second as a date?
How do I then plot this series of dates?
2021-03-11 10:00:00
2021-03-11 14:17:00
2021-03-12 05:16:46
2021-03-12
3 matches
Mail list logo