Skip to content

NONONOexe/jpaccidents

Repository files navigation

jpaccidents jpaccidents website

Lifecycle: experimental CRAN status R-CMD-check Codecov test coverage

jpaccidents is package for handling the traffic accident data in Japan. This package covers the traffic accident data provided by the National Police Agency of Japan.

jpaccidentsは日本の交通事故のデータを扱うためのパッケージです。 このパッケージでは、警察庁が提供する交通事故データを対象としています。

Installation

You can install the development version of jpaccidents using the following methods:

jpaccidentsの開発版は以下の方法からインストールできます。

Using install.packages() (R-universe)

# Enable the R-universe
options(repo = c(
  nononoexe = "https://nonoexe.r-universe.dev",
  cran = "https://cloud.r-project.org"
))

Using pak

# install.packages("pak")
pak::pak("NONONOexe/jpaccidents")

Usage

Load the package as follows:

パッケージを以下のようにして読み込みます。

library(jpaccidents)

The traffic accident data can be used follows:

交通事故のデータは次のようにして利用することができます。

downloaded_path <- download_accident_data(
  type         = "main",
  download_dir = "download-dir-path",
  years        = 2023
)
accident_data <- read_accident_data(downloaded_path)

There are three types of traffic accident data: main (honhyo), supplementary (hojyuhyo), and highway (kosokuhyo) data. jpaccidents provides functions to download specified types of data. It also provides functions for importing each data set into into a common schema.

交通事故のデータは本票、補充票、高速票の3種類があります。 jpaccidentsはこれらのデータから指定したものをダウンロードする関数を提供します。 また、各データを共通スキーマに取り込むための関数を提供します。

License

This package is licensed under the MIT License - see the LICENSE file for details. The traffic accident data downloaded using this package is provided by the National Police Agency of Japan under the Creative Commons Attribution 4.0 International License.

このパッケージはMITライセンスの下で提供されています。詳細はLICENSEファイルを参照してください。 また、本パッケージによりダウンロードできる交通事故データは、警察庁によりクリエイティブ・コモンズ 表示 4.0 国際 ライセンスの下で提供されています。

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

このプロジェクトは行動規範を設けています。 したがって、このプロジェクトでは参加者にこの行動規範に従うことを求めます。

About

Tools for Traffic Accident Data in Japan

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Languages