jabr_area: Get administrative area

Description Usage Arguments Value Examples

View source: R/jabr_area.R

Description

List the administrative area in Jawa Barat.

Usage

1
jabr_area(level, code_bps)

Arguments

level

Level of administrative division. Valid values are "district" for Kota/Kabupaten, "subdistrict" for Kecamatan and "village" for Desa/Kelurahan.

code_bps

BPS code of the upper administrative division. Note that BPS code for "district" level is "32". To get "subdistrict" level area, you have to supply the BPS code of the district (Kota/Kabupaten). To get "village" level area, you have to supply the BPS code of the subdistrict (Kecamatan).

Value

A tibble.

Examples

1
2
3
4
5
6
library(jabr)

jabr_area(level = "district", code_bps = "32")

# fetch subdistrict area in Kab. Cirebon
jabr_area(level = "subdistrict", code_bps = "3209")

jabr documentation built on Jan. 13, 2020, 9:07 a.m.