Dear all,
first I would like to thank Leo for his help and advice. My sincere
apologies for the delayed response; regrettably, I overlooked the email.
In order to characterize the problem a bit better I want to give
additional information and clarify the point where I have problems.
First o
`anytime` was written for this:
> anytime::anytime("2020-09-17_00:00:00")
[1] "2020-09-17 CDT"
> class(anytime::anytime("2020-09-17_00:00:00"))
[1] "POSIXct" "POSIXt"
>
Dirk
--
dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org
__
Às 16:30 de 07/12/2023, Rui Barradas escreveu:
Às 16:21 de 07/12/2023, Sorkin, John escreveu:
Colleagues,
I have a matrix of character data that represents date and time. The
format of each element of the matrix is
"2020-09-17_00:00:00"
How can I convert the elements into a valid R date-time
Às 16:21 de 07/12/2023, Sorkin, John escreveu:
Colleagues,
I have a matrix of character data that represents date and time. The format of
each element of the matrix is
"2020-09-17_00:00:00"
How can I convert the elements into a valid R date-time constant?
Thank you,
John
John David Sorkin M
Look at the lubridate package in R.
Regards,
Tim
-Original Message-
From: R-help On Behalf Of Sorkin, John
Sent: Thursday, December 7, 2023 11:22 AM
To: r-help@r-project.org (r-help@r-project.org)
Subject: [R] Convert character date time to R date-time variable.
[External Email]
Collea
Colleagues,
I have a matrix of character data that represents date and time. The format of
each element of the matrix is
"2020-09-17_00:00:00"
How can I convert the elements into a valid R date-time constant?
Thank you,
John
John David Sorkin M.D., Ph.D.
Professor of Medicine, University of
6 matches
Mail list logo