[R] Converting time format

Eric Berger er|cjberger @end|ng |rom gm@||@com
Mon Sep 19 13:19:47 CEST 2022

What is the output of

> class(b$time)


Also, start sending your emails in plaint text format, if possible.

On Mon, Sep 19, 2022 at 2:12 PM Parkhurst, David <parkhurs using indiana.edu> wrote:
> 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]]
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list