Learn R Programming

jabr (version 0.1.2)

jabr_area: Get administrative area

Description

List the administrative area in Jawa Barat.

Usage

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

Run this code
# NOT RUN {
library(jabr)

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

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

Run the code above in your browser using DataLab