Skip to content

NONONOexe/jpaccidents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

766d755 · Feb 9, 2025

History

73 Commits
Dec 22, 2024
Feb 9, 2025
Feb 9, 2025
Feb 2, 2025
Feb 9, 2025
Jan 4, 2025
Jan 30, 2025
Jan 28, 2025
Dec 21, 2024
Feb 2, 2025
Jan 12, 2025
Jan 12, 2025
Feb 9, 2025
Jan 28, 2025
Jan 29, 2025
Sep 27, 2024
Dec 21, 2024

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 like so:

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

install.packages("remotes")
remotes::install_git("https://github.com/NONONOexe/jpaccidents")

Usage

Load the package as follows:

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

library(jpaccidents)

The traffic accident data can be used follows:

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

downloaded_path <- download_accident_main_data(download_dir = "download-dir-path", year = 2022)
main_data <- read_accident_main_data(downloaded_path)

There are three types of traffic accident data: main (honhyo), supplementary (hojyuhyo), and highway (kosokuhyo) data. The package provides functions for each of these. Use the function appropriate for the data you need. See also ? download_accident_main_data for more information.

交通事故のデータは本票、補充票、高速票の3種類があります。 それぞれに対応する関数が用意されています。 必要なデータに応じて利用してください。 詳しくは? download_accident_main_dataを参照してください。

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

Citation

Stars

Watchers

Forks

Languages