lcd not returning "date" hour:minute values.
curtisld opened this issue · 1 comments
curtisld commented
lcd is returning "date" with all hour:minutes as 00:00. I downloaded a csv file directly from NCDC which does contain the hour:minute values.
"STATION","DATE","REPORT_TYPE","SOURCE",...
"72793024233","2023-01-01T00:14:00","FM-16","7",...
"72793024233","2023-01-01T00:38:00","FM-16","7",...
"72793024233","2023-01-01T00:50:00","FM-16","7",...
dum <- lcd(station = "72793024233", year = year, verbose = TRUE)
head(dum)
# A tibble: 6 x 125
station date latitude longitude eleva~1 name repor~2 source hourl~3 hourl~4 hourl~5 hourl~6 hourl~7
<chr> <dttm> <dbl> <dbl> <dbl> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
1 72793024233 2023-01-01 00:00:00 47.4 -122. 112. SEAT~ FM-16 7 30.04 39 42 "" ""
2 72793024233 2023-01-01 00:00:00 47.4 -122. 112. SEAT~ FM-16 7 30.05 39 42 "" ""
3 72793024233 2023-01-01 00:00:00 47.4 -122. 112. SEAT~ FM-16 7 30.05 39 43 "" ""
4 72793024233 2023-01-01 00:00:00 47.4 -122. 112. SEAT~ FM-15 7 30.05 39 41 "0.00" ""
5 72793024233 2023-01-01 00:00:00 47.4 -122. 112. SEAT~ FM-16 7 30.06 39 42 "" ""
6 72793024233 2023-01-01 00:00:00 47.4 -122. 112. SEAT~ FM-15 7 30.07 41 42 "0.00" "BR:1 ~
# ... with 112 more variables: hourlypressurechange <chr>, hourlypressuretendency <int>, hourlyrelativehumidity <chr>,
# hourlyskyconditions <chr>, hourlysealevelpressure <chr>, hourlystationpressure <chr>, hourlyvisibility <chr>,
# hourlywetbulbtemperature <chr>, hourlywinddirection <chr>, hourlywindgustspeed <chr>, hourlywindspeed <chr>,
# sunrise <dbl>, sunset <dbl>, dailyaveragedewpointtemperature <chr>, dailyaveragedrybulbtemperature <chr>,
# dailyaveragerelativehumidity <chr>, dailyaveragesealevelpressure <chr>, dailyaveragestationpressure <chr>,
# dailyaveragewetbulbtemperature <chr>, dailyaveragewindspeed <chr>, dailycoolingdegreedays <dbl>,
# dailydeparturefromnormalaveragetemperature <dbl>, dailyheatingdegreedays <dbl>, ...
# i Use `colnames()` to see all variable names
> sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] curl_4.3 htmltab_0.7.1.1 rvest_1.0.2 weathermetrics_1.2.2 rnoaa_1.3.9
[6] conflicted_1.2.0 lubridate_1.8.0 forcats_0.5.0 stringr_1.4.1 dplyr_1.0.8
[11] purrr_0.3.4 readr_2.1.2 tidyr_1.1.0 tibble_3.1.6 ggplot2_3.3.6
[16] tidyverse_1.3.0
loaded via a namespace (and not attached):
[1] httr_1.4.2 bit64_4.0.5 vroom_1.5.7 jsonlite_1.8.0 viridisLite_0.4.1 modelr_0.1.8
[7] assertthat_0.2.1 triebeard_0.3.0 urltools_1.7.3 selectr_0.4-2 blob_1.2.1 cellranger_1.1.0
[13] yaml_2.3.5 pillar_1.8.1 backports_1.1.7 lattice_0.20-41 glue_1.6.2 digest_0.6.29
[19] colorspace_2.0-3 htmltools_0.5.2 XML_3.99-0.4 pkgconfig_2.0.3 httpcode_0.3.0 broom_0.5.6
[25] haven_2.3.1 scales_1.2.1 tzdb_0.3.0 generics_0.1.3 farver_2.1.0 ellipsis_0.3.2
[31] cachem_1.0.6 withr_2.5.0 cli_3.6.0 magrittr_2.0.3 crayon_1.4.1 readxl_1.3.1
[37] memoise_2.0.1 evaluate_0.14 fs_1.5.2 fansi_1.0.3 nlme_3.1-148 xml2_1.3.2
[43] tools_4.0.2 data.table_1.12.8 hms_0.5.3 lifecycle_1.0.1 munsell_0.5.0 reprex_0.3.0
[49] compiler_4.0.2 rlang_1.0.2 grid_4.0.2 rstudioapi_0.11 rappdirs_0.3.3 labeling_0.4.2
[55] rmarkdown_2.3 gtable_0.3.1 DBI_1.1.1 R6_2.5.1 gridExtra_2.3 knitr_1.29
[61] fastmap_1.1.0 bit_4.0.4 utf8_1.2.2 hoardr_0.5.2 stringi_1.7.6 parallel_4.0.2
[67] crul_1.2.0 Rcpp_1.0.8.3 vctrs_0.4.1 dbplyr_1.4.4 tidyselect_1.1.1 xfun_0.26
curtisld commented
Ah, working fine (returning hour:minute values) today.