| boj_layer | R Documentation |
Uses the BOJ layer API to retrieve all series matching a database hierarchy
and frequency. The function follows NEXTPOSITION automatically. A layer
condition that identifies more than 1,250 series is rejected by the BOJ API;
this count is evaluated before the frequency filter.
boj_layer(
db,
frequency,
layer,
start_date = NULL,
end_date = NULL,
lang = boj_default("lang", "en"),
wide = FALSE,
wait = boj_default("wait", 1),
timeout = boj_default("timeout", 30),
retries = boj_default("retries", 3)
)
db |
BOJ database identifier. |
frequency |
One of |
layer |
One to five hierarchy values supplied as a vector or a
comma-separated string. |
start_date, end_date |
Optional BOJ period codes. Accepted request forms
are |
lang |
Response language, |
wide |
If |
wait |
Requested seconds between automatic requests. The default is one second, and values below one are treated as one whenever another request is needed, to avoid high-frequency access prohibited by the BOJ. |
timeout |
Request timeout in seconds. |
retries |
Number of retries for network and transient server errors. |
A long or wide tibble with the same structure as boj_data().
## Not run:
boj_layer(
db = "BP01", frequency = "M", layer = c(1, 1, 1),
start_date = "202504", end_date = "202509"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.