[R] Converting time format

Parkhurst, David p@rkhur@ @end|ng |rom |nd|@n@@edu
Mon Sep 19 02:56:47 CEST 2022


I have a dataframe obtained using read.csv from an excel file.  Its first column is times, running from 18:00 to 19:30.  If I want to plot other columns against time, do I need to convert those somehow, and how would I do that?

If I run plot(b$time,b$myvar) I get a decent plot, but a friend suggests that R is just treating those numbers as text, and putting them in alphabetical order.  True?

	[[alternative HTML version deleted]]



More information about the R-help mailing list