ABout the content #15
-
Hi, i just noticed that the dataset availability isn't so exhaustive. the bps_dataset() returns only 10 observatory tables. Table like for example "Harga Konsumen Nasional Beberapa Barang dan Jasa" isn't there. My question is, is the bps_dataset() (outside of the excellent HS data) is all thats available? Cheers and appreciate the work |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, mas. You can get the exhaustive list of available datasets (in the form of what the agency calls dynamic tables) by supplying library(bpsr)
bps_dataset(page = Inf)
#> Warning: `multi_req_perform()` was deprecated in httr2 1.0.0.
#> ℹ Please use `req_perform_parallel()` instead.
#> ℹ The deprecated feature was likely used in the bpsr package.
#> Please report the issue at <https://github.com/dzulfiqarfr/bpsr/issues>.
#> This warning is displayed once every 8 hours.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
#> generated.
#> # A tibble: 1,376 × 12
#> dataset_id title subject_id subject subcsa_id subcsa_name def notes
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 2209 Produksi Kay… 60 Kehuta… 557 Pertanian,… <NA> Sumb…
#> 2 2307 Indeks Harga… 20 Harga … 536 Harga-Harga <NA> <NA>
#> 3 2195 Jumlah Perja… 16 Pariwi… 561 Pariwisata <NA> Cata…
#> 4 299 Risiko Pendu… 34 Politi… 526 Hukum dan … <NA> <…
#> 5 297 Persentase P… 34 Politi… 526 Hukum dan … <NA> <…
#> 6 101 Jumlah Tinda… 34 Politi… 526 Hukum dan … <NA> <…
#> 7 2179 Persentase R… 29 Peruma… 525 Pemukiman … Ruma… <…
#> 8 855 Persentase R… 29 Peruma… 525 Pemukiman … <… Sumb…
#> 9 846 Persentase R… 29 Peruma… 525 Pemukiman … <… Sumb…
#> 10 708 Indikator Ke… 30 Keseha… 522 Kesehatan <NA> Sumb…
#> # ℹ 1,366 more rows
#> # ℹ 4 more variables: vertical_var_group_id <chr>, unit <chr>, graph_id <chr>,
#> # graph_name <chr> Created on 2024-12-15 with reprex v2.1.1 For the dataset you asked, BPS doesn't publish the data in the form of dynamic tables. I believe it's available only in publications. You can look them up using library(bpsr)
bps_search(
"publication",
keyword = "Harga Konsumen Nasional Beberapa Barang dan Jasa"
)
#> # A tibble: 10 × 10
#> pub_id title abstract issn sch_date released last_updated cover file_url
#> <chr> <chr> <chr> <chr> <chr> <chr> <lgl> <chr> <chr>
#> 1 fd79b5725… Harg… Publika… 1907… 2024-04… 2024-04… NA http… https:/…
#> 2 7e8e42026… Harg… Publika… 1907… 2023-04… 2023-04… NA http… https:/…
#> 3 d1b806ac8… Harg… Publika… 1907… 2022-04… 2022-04… NA http… https:/…
#> 4 a00d40a0d… Harg… Publika… 1907… 2021-04… 2021-04… NA http… https:/…
#> 5 09b4de55f… Harg… Publika… 1907… 2020-04… 2020-04… NA http… https:/…
#> 6 479c9b70d… Harg… Publika… 1907… 2019-04… 2019-04… NA http… https:/…
#> 7 73c96e27b… Harg… <p>Data… <NA> 2018-04… 2018-04… NA http… https:/…
#> 8 d870476b0… Harg… Data ya… 1907… 2017-04… 2017-04… NA http… https:/…
#> 9 6150f03dc… Harg… Data ya… 1907… 2016-03… 2016-03… NA http… https:/…
#> 10 c5df1a092… Harg… Data ya… 1907… 2015-03… 2015-04… NA http… https:/…
#> # ℹ 1 more variable: file_size <chr> Created on 2024-12-15 with reprex v2.1.1 You can use However, you might want to check again the dynamic table availability of each table inside those publications. Hope this helps, mas. Anw, thanks for the kind words🙌🏽 |
Beta Was this translation helpful? Give feedback.
Hi, mas. You can get the exhaustive list of available datasets (in the form of what the agency calls dynamic tables) by supplying
Inf
to thepage
argument inbps_dataset()
, like so.