Prefecture polygon data.

jpn_pref(
  pref_code,
  admin_name,
  district = TRUE,
  download = FALSE,
  drop_sinkyokyoku = TRUE
)

Arguments

pref_code

jis code from 1 to 47

admin_name

prefecture names (string)

district

logical (default TRUE)

download

logical (default FALSE). IF TRUE, return raw data.

drop_sinkyokyoku

if TRUE, drop sichyo_sinkyokyoku variable (default TRUE)

Details

Collect unit of prefecture simple feature data.frame objects.. If downalod argument is TRUE, download administrative area data from the National Land Numeral Information Download Service (for law data).

Examples

if (FALSE) { jpn_pref(pref_code = 33, district = FALSE) jpn_pref(pref_code = 14, district = TRUE) }