I am trying to convert a column from Factor to numeric so I can then run statistical summary (mean, median, max, min). However I keep getting NA when running any of the statistics for this column.
Before running any conversion code, if I run str(),
the type is 'hms' num [1:5860776] 00:40:56 01:08:32 00:07:19......
I tried the following code
all_trips$ride_length <- as.numeric(as.character(all_trips$ride_length))
and is.numeric(all_trips$ride_length) reads TRUE
when I then run str() I get
num [1:5860776] NA NA NA NA NA NA NA ....
Any help is appreciated.