Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 209727

hms function kicking out NAs [closed]

$
0
0

Keep getting this warning message:

Warning message:
In .parse_hms(..., order = "HMS", quiet = quiet) :
  Some strings failed to parse, or all strings are NAs

And the function replaces all data in my character vector to NA.

I've tried running hms() function through lubridate package and tried again using POSIXct

combined$start<- c("8:45""12:10""16:00")

combined$start <- as.character(combined$start)

combined$start <- hms(combined$start)

I'd like the characters in combined$start to be converted to hms but I only get `NA when I try to run the last line of code.


Viewing all articles
Browse latest Browse all 209727

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>