Learn R Programming

jpndistrict (version 0.3.9)

jpn_pref: Simple features for prefecture area polygon

Description

Prefecture polygon data.

Usage

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 download argument is TRUE, download administrative area data from the National Land Numeral Information Download Service (for law data).

Examples

Run this code
# NOT RUN {
jpn_pref(pref_code = 33, district = FALSE)
jpn_pref(pref_code = 14, district = TRUE)
# }

Run the code above in your browser using DataLab