Description Usage Arguments Details Value Author(s) Examples
Function to search the EIA data catalogue
1 2 | eia_search(..., page_num = NULL, rows_per_page = NULL,
simplify = TRUE)
|
... |
any valid EIA API search argument. Valid search arguments are: |
page_num |
default page number (default: NULL). |
rows_per_page |
number of rows per page (default: NULL). |
EIA search function
Search terms provided to arguments series_id and name must be
character objects and last_updated searches must be date type objects
(i.e. either Date, chron or POSIXt) specifying a date range to check. Note
that if only one date value is provided, the query will search for all series updated on that
date.
Returns the Series IDs and details as an R data frame.
David Mitchell <david.pk.mitchell@gmail.com>
1 2 3 4 5 6 7 8 | ## Series ID search
eia_search(series_id = "PET.MB")
## Keyword search
eia_search(name = "crude oil");
## Date search
eia_search(last_updated = as.Date(c("2015-01-01", "2015-01-02")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.