Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

How to extarct hours and minutes from the factor time varaible

$
0
0

@raghava_r4u wrote:

Hello All ,

Greetings!!!

I am working on employee data in R-studio , check in and check out is the variables

Date i got separately i done format with that
I got the 2 varaible class as factor

ChekIn time data

09:43:00.0000000 -- It comes with class of factor
09:23:00.0000000

I want to extract like this

09:43 and needed this in time format after extracting
09:23

I try to convert character and applied as.POSIXct to the variables but did not get any proper results since it is represented in factor

Can any one help on this

Thanks & Regards
Raghavendra

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles