Closed sawyervillers closed 4 years ago
The commit you saw which adds the ability to pull HL series has not yet been pushed to CRAN. I'll push it fairly soon (thanks for the reminder). Until then you can use the github version to download the HL series via:
library(devtools)
install_github("Matt-Brigida/EIAdata")
library(EIAdata)
data <-getEIA('EBA.NY-ALL.D.HL',eiaapikey)
And your issue and information provided were perfect---you might be a novice but you are doing everything correctly!
Novice here (be kind, I don't know how github works) - I saw a pull request and merge for HL sampling frequency. Was this published on CRAN? I'm getting this error from this code:
library(EIAdata) data <-getEIA('EBA.NY-ALL.D.HL',eiaapikey)
"ERROR: The last character of your ID is not one of the possible sampling frequencies (A, Q, M, W, D, or H)"
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] forcats_0.4.0 stringr_1.4.0 dplyr_0.8.4 purrr_0.3.3 readr_1.3.1 tidyr_1.0.2 tibble_2.1.3
[8] ggplot2_3.2.1 tidyverse_1.3.0 xts_0.12-0 zoo_1.8-7 XML_3.99-0.3
loaded via a namespace (and not attached): [1] Rcpp_1.0.3 cellranger_1.1.0 pillar_1.4.3 compiler_3.6.2 dbplyr_1.4.2 tools_3.6.2
[7] lubridate_1.7.4 jsonlite_1.6.1 lifecycle_0.1.0 nlme_3.1-142 gtable_0.3.0 lattice_0.20-38 [13] pkgconfig_2.0.3 rlang_0.4.4 reprex_0.3.0 cli_2.0.1 DBI_1.1.0 rstudioapi_0.11 [19] haven_2.2.0 withr_2.1.2 xml2_1.2.2 httr_1.4.1 fs_1.3.1 hms_0.5.3
[25] generics_0.0.2 vctrs_0.2.2 grid_3.6.2 tidyselect_1.0.0 glue_1.3.1 R6_2.4.1
[31] fansi_0.4.1 readxl_1.3.1 modelr_0.1.5 magrittr_1.5 backports_1.1.5 scales_1.1.0
[37] rvest_0.3.5 assertthat_0.2.1 colorspace_1.4-1 stringi_1.4.4 lazyeval_0.2.2 munsell_0.5.0
[43] broom_0.5.4 crayon_1.3.4