Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

times showing as seconds without hms loaded #4

Open
malcolmbarrett opened this issue Nov 21, 2023 · 0 comments
Open

times showing as seconds without hms loaded #4

malcolmbarrett opened this issue Nov 21, 2023 · 0 comments

Comments

@malcolmbarrett
Copy link

as discussed in r-causal/causal-inference-in-R#198 by @tgerke

It seems that without library(hms) (or library(tidyverse)) that hms time objects are showing as seconds.

touringplans::parks_metadata_raw |> dplyr::select(mkclose)
#> # A tibble: 2,079 × 1
#>    mkclose   
#>    <hms>     
#>  1 90000 secs
#>  2 90000 secs
#>  3 90000 secs
#>  4 86400 secs
#>  5 82800 secs
#>  6 75600 secs
#>  7 75600 secs
#>  8 75600 secs
#>  9 75600 secs
#> 10 82800 secs
#> # ℹ 2,069 more rows

library(hms)

touringplans::parks_metadata_raw |> dplyr::select(mkclose)
#> # A tibble: 2,079 × 1
#>    mkclose
#>    <time> 
#>  1 25:00  
#>  2 25:00  
#>  3 25:00  
#>  4 24:00  
#>  5 23:00  
#>  6 21:00  
#>  7 21:00  
#>  8 21:00  
#>  9 21:00  
#> 10 23:00  
#> # ℹ 2,069 more rows

Created on 2023-11-21 with reprex v2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant