| get_series | R Documentation | 
Create and execute query for a single time series
get_series(
  series_id,
  start_year = NULL,
  end_year = NULL,
  year_limit = NULL,
  span = TRUE,
  api_key = bls_get_key(),
  ...
)
series_id | 
 Character scalar BLS series ID  | 
start_year, end_year | 
 numeric 4-digit years. While optional, they are
strongly recommended. If one is provided, the other is mandatory.   | 
year_limit | 
 optional number of years to paginate request by. If not
explicitly set, it will be set to 10 or 20 depending on if an   | 
span | 
 when set to   | 
api_key | 
 Optional. An API key string. Defaults to the value returned by
  | 
... | 
 additional arguments to pass to   | 
a single series result, in list form. The resulting list will have the following items:
seriesID: a character vector of length 1 containing the series_id
data: a list of lists containing the payload data. Each item of the list
represents an observation. Each observation is a list with the following
named items year, period, periodName, value, footnotes.
Footnotes are a list. Additionally, the most recent observation will have
an item named latest which will be marked as 'true'.
query_series
Other blsR-requests: 
bls_request(),
get_all_surveys(),
get_latest_observation(),
get_n_series_table(),
get_n_series(),
get_popular_series(),
get_series_tables(),
get_series_table(),
get_survey_info(),
reduce_spanned_responses(),
span_series_request()
## Not run: 
series <- get_series('LNS14000001')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.