[R] Converting characters back to Date and Time
petr@p|k@| @end|ng |rom prechez@@cz
Wed Sep 1 14:27:21 CEST 2021
You can use as.POSIXct function
But you should preferably try to read the date as character vector and then
convert it to date and time.
> -----Original Message-----
> From: R-help <r-help-bounces using r-project.org> On Behalf Of Eliza Botto
> Sent: Tuesday, August 31, 2021 10:26 PM
> To: r-help using r-project.org
> Subject: [R] Converting characters back to Date and Time
> DeaR useR,
> I read an excel column in R having Date and time (written in the same
> 06/18/18 10:00
> 06/18/18 11:00
> 06/18/18 12:00
> In R environment, they are read as
> Is there a way to covert these characters back to the original format?
> Thank-you very much in advance.
> Eliza Botto
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help