Learn R Programming

⚠️There's a newer version (0.3.9) of this package.Take me there.

jpndistrict

Overview

In this package, the administrative area data to be provided uses the National Land Numerical Information "National Land Numeral Information" http://nlftp.mlit.go.jp/ksj/gml/datalist/KsjTmplt-N03.html http://nlftp.mlit.go.jp/ksj/gml/datalist/KsjTmplt-P34.html. Shinya Uryu is editing and processing this data. Therefore, when preparing a secondary work using this data, it is necessary to follow the term of the National Land Numerical Information.

This package provide map data is based on the Digital Map 25000(Map Image) published by Geospatial Information Authority of Japan (Approval No.603FY2017 information usage http://www.gsi.go.jp).

Installation

Install from CRAN.

install.packages("jpndistrict")

For developers, please use the devtool package to install via the GitHub repository.

install.packages("devtools")
devtools::install_github("uribo/jpndistrict")

Usage

# Load Package
library(jpndistrict)

Administrative area data

jpn_pref(14)
jpn_pref(14, district = FALSE)
jpn_cities(14, admin_name = "海老名市")
jpn_cities(33, admin_name = c("倉敷市", "笠岡市"))

Administration office data

jpn_admins(jis_code = 33)
jpn_admins(jis_code = c("33101", "33212"))

Copy Link

Version

Install

install.packages('jpndistrict')

Monthly Downloads

48

Version

0.3.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Shinya Uryu

Last Published

December 7th, 2017

Functions in jpndistrict (0.3.0)

find_city

Detect city by coordinates
pref_code

Get prefecture code from jis code
prefecture_mesh

Prefecture's meshcode
jpn_admins

Simple features for administration office points
raw_bind_cityareas

Intermediate function
jpn_cities

Simple features for city area polygons
read_ksj_cityarea

Intermediate function
bind_cityareas

Bind city area polygons to prefecture polygon
collect_cityarea

Collect administration area
collect_ksj_p34

Collect administration office point datasets.
collect_prefcode

Get prefecture code (JIS X 0402)
find_pref

Detect prefecture by coordinates
mesh_district

Export district's mesh polygon
path_ksj_cityarea

Download KSJ N03 zip files
read_ksj_p34

Intermediate function
which_pol_min

Internal function
find_prefs

Detect prefectures by coordinates
jpn_pref

Simple features for prefecture area polygon
jpnprefs

Prefectural informations in Japan
district_viewer

District Viewer