merge_tables | R Documentation |
merge_tables()
turns a list of series as returned by
data_as_table()
into a single tibble
merge_tables(tables, join_by = c("year", "period"))
tables |
a named list of tables with matching periodicity. Mixing data with different (monthly, quarterly, annual) periodicity is unsupported. The list names will be used as column names in the output. |
join_by |
an optional character vector of columns to use to join tables. The result will be sorted in ascending order using these columns. |
tibble
Other blsR-utils:
bls-api-key
,
data_as_table()
,
data_as_tidy_table()
,
merge_tidy_tables()
,
reduce_spanned_responses()
,
span_request_queries()
,
span_series_request()
,
tidy_periods()
,
tidy_table_as_zoo()
## Not run:
series_ids <- list(uer.men ='LNS14000001', uer.women = 'LNS14000002')
uer_series <- get_n_series(series_ids, 'your-api-key-here' )
uer_tables <- lapply(uer_series, function(x) data_to_table(x$data))
big_table <- merge_tables(uer_tables)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.