Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.1%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
Read and Convert Japanese Municipality Codes
Basic Info
- Host: GitHub
- Owner: UchidaMizuki
- License: other
- Language: R
- Default Branch: main
- Homepage: https://uchidamizuki.github.io/jpcity/
- Size: 10.4 MB
Statistics
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 1
- Releases: 3
Created over 3 years ago
· Last pushed over 1 year ago
Metadata Files
Readme
License
README-ja.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# jpcity
[](https://github.com/UchidaMizuki/jpcity/actions/workflows/R-CMD-check.yaml)
[](https://CRAN.R-project.org/package=jpcity)
[](https://app.codecov.io/gh/UchidaMizuki/jpcity?branch=main)
jpcityは,日本の市区町村コードの読み取り・変換を行うためのRパッケージです.
このパッケージは,以下のような機能を提供しています.
- 市区町村コードの読み取り:`parse_city()`
- `city_name()`や`pref_name()`を組み合わせることで市区町村名や都道府県名を取得可能
- 異なる時点の市区町村コードへの変換(廃置分合処理):`city_convert()`
- 政令指定都市の区の集約・区への分割:`city_desig_merge()`,`city_desig_split()`
- 特定時点の市区町村コードの取得:`get_city()`
- 都道府県・市区町村名を用いた市区町村コードの検索:`find_city()`
## Installation
``` r
install.packages("jpcity")
```
jpcityの開発版は,[GitHub](https://github.com/)からインストールすることができます.
``` r
# install.packages("devtools")
devtools::install_github("UchidaMizuki/jpcity")
```
## Examples
```{r setup, message=FALSE, warning=FALSE}
library(jpcity)
library(tidyverse)
```
### 市区町村コードの読み取り
```{r parse_city}
city <- parse_city(c("13101", "27101", "23101"))
# Override the interval using `when` argument
city <- parse_city(c("13101", "27101", "23101"),
when = "1980-01-01")
city
tibble(city = city,
pref_name = pref_name(city),
city_name = city_name(city),
city_name_kana = city_name(city,
kana = TRUE))
```
### 異なる時点の市区町村コードへの変換(廃置分合処理)
```{r city_convert}
city <- parse_city(c("13101", "27101", "23101"),
when = "1980-01-01")
tibble(city_from = city,
city_to = city_convert(city,
from = "1980-01-01",
to = "2020-01-01")) |>
unnest(city_to)
city <- parse_city("15100",
when = "2020-01-01")
tibble(city_from = city,
city_to = city_convert(city,
from = "2020-01-01",
to = "1970-04-01")) |>
unnest(city_to)
```
### 政令指定都市の区の集約・区への分割
```{r city_desig_merge-city_desig_split}
city <- parse_city(c("13101", "27101", "23101"),
when = "1980-01-01")
tibble(city = city,
city_desig = city_desig_merge(city),
city_desig_merge_tokyo = city_desig_merge(city,
merge_tokyo = TRUE))
```
### 特定時点の市区町村コードの取得
```{r get_city}
tibble(city = get_city("2020-01-01"))
tibble(city = get_city("1970-04-01"))
```
### 都道府県・市区町村名を用いた市区町村コードの検索
```{r find_city}
find_city(c("東京都", "新宿区"))
```
Owner
- Name: Uchida Mizuki
- Login: UchidaMizuki
- Kind: user
- Location: Japan
- Company: Yachiyo Engineering Co., Ltd.
- Website: uchidamizuki.quarto.pub
- Repositories: 8
- Profile: https://github.com/UchidaMizuki
I am a classical music lover.
GitHub Events
Total
- Watch event: 3
Last Year
- Watch event: 3
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 5
- Total pull requests: 1
- Average time to close issues: 5 months
- Average time to close pull requests: less than a minute
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 2
- Pull requests: 0
- Average time to close issues: about 1 month
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- UchidaMizuki (6)
Pull Request Authors
- UchidaMizuki (3)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 251 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 5
- Total maintainers: 1
cran.r-project.org: jpcity
Read and Convert Japanese Municipality Codes
- Homepage: https://uchidamizuki.github.io/jpcity/
- Documentation: http://cran.r-project.org/web/packages/jpcity/jpcity.pdf
- License: MIT + file LICENSE
-
Latest release: 0.3.0
published over 1 year ago
Rankings
Dependent packages count: 29.7%
Dependent repos count: 35.4%
Average: 51.6%
Downloads: 89.7%
Maintainers (1)
Last synced:
11 months ago