Do you only want the HH:MM:SS of the data? What are you going to do
with it? You can 'extract' it with
format(hora, "%H%:%M:%S")
If you don't want the date and are only working with the hours in a
single day, then convert the time to a numeric value of hours (or
minutes), whichever is appropria
Assunto: Extract Time in POSIXct
I have a dataframe with a column [hora] with this format:
hora: POSIXct, format: "1899-12-30 14:30:00"
It was obtained reading a access2007 database table.
Can I extract the time from each entry, keeping the POSIXct format?
Paulo E. Cardoso
2 matches
Mail list logo