Learn R Programming

covid19jp : R package for Japanese Covid-19 Datasets

This package provides ready to use Japanese covid-19 datasets.

  • japan_daily: Daily nation-level dataset of Japanese covid-19 situation.
  • pref_daily: Daily prefecture-level dataset of Japanese covid-19 situation.
  • pref_weekly: Weekly prefecture-level dataset of Japanese covid-19 situation (which contains some additional columns like hospital capacity not appear in pref_daily).
  • pref: Master dataset for Japanese prefectures.

Notes

  • CSV/JSON format files are also available here. See also Dataset detail below.

  • Due to the data source format changes, updating datasets in development version might delay.

Installation

# From CRAN (may not be latest dataset)
instal.packages("covid19jp")

# Install the development version from GitHub
devtools::install_github("kj-9/covid19jp", ref = "master")

We update datasets in devolpment version daily. To get latest datasets, run update_date.

# update your datasets
covid19jp::update_data()

Dataset detail

japan_daily

Columns

namedescriptiondescription in Japanese
dateDate in JST日本時間での日付
testsNumber of testsPCR 検査実施人数
newCasesNumber of new cases陽性者数
activeCasesNumber of current active cases入院治療等を要する者の数
severeCasesNumber of current severe cases重症者数
recoveredTotal number of recovered cases退院又は療養解除となった者の数(累積)
deathsTotal number of deaths死亡者数(累積)
rtEffective reproduction number実効再生産数

Data Source

pref_daily

Columns

namedescriptiondescription in Japanese
prefCodePrefecture code都道府県番号
prefJPPrefecture name in Japanese都道府県名(日本語)
prefENPrefecture name in English都道府県名(英語)
dateDate in JST日本時間での日付
testsTotal number of testsPCR 検査実施人数 (累積)
newCasesTotal number of new cases陽性者数(累積)
activeCasesNumber of current active cases入院治療等を要する者の数
severeCasesNumber of current severe cases重症者数
recoveredTotal number of recovered cases退院又は療養解除となった者の数(累積)
deathsTotal number of deaths死亡者数(累積)
rtEffective reproduction number実効再生産数

Data Source

pref_weekly

Currently, only dataset after 2020-09-02 is available.

Columns

namedescriptiondescription in Japanese
prefCodeprefecture code都道府県番号
prefJPName of the prefecture in Japanese都道府県名(日本語)
prefENName of the prefecture in English都道府県名(英語)
dateDate in JST日本時間での日付
activeCasesNumber of current active cases入院治療等を要する者の数
hospitalizedCasesNumber of current hospitalized cases入院者数(入院確定者数を含む)
hospitalizedCasesPhaseCurrent alert phase level for hospitalized cases入院者現フェーズ
hospitalizedCasesMaxPhaseMaximum alert phase level for hospitalized cases入院者最終フェーズ
hospitalizedCasesCapCurrent bed capacity for hospitalized cases入院者確保病床数
hospitalizedCasesCapPlannedBed capacity for hospitalized cases planned for the maximum alert phase最終フェーズにおける入院者即応病床(計画)数
hospitalizedCasesUTECurrent hospital (bed) utilization rate for hospitalized cases確保病床数に対する入院者使用率
severeCasesNumber of current severe cases重症者数
severeCasesPhaseCurrent alert phase level for severe cases重症者現フェーズ
severeCasesMaxPhaseMaximum alert phase level for severe cases重症者最終フェーズ
severeCasesCapCurrent bed capacity for severe cases重症者確保病床数
severeCaseaCapPlannedBed capacity for severe cases planned for the maximum alert phase最終フェーズにおける重症者即応病床(計画)数
severeCasesUTECurrent hospital (bed) utilization rate for severe cases確保病床数に対する重症者使用率
atHotelCasesNumber of current cases staying at hotels (or other accommodation facilities)宿泊療養者数
atHotelCasesPhaseCurrent alert phase level for cases staying at hotels宿泊療養現フェーズ
atHotelCasesMaxPhaseMaximum alert phase level for cases staying at hotels宿泊療養最終フェーズ
atHotelCasesCapCurrent room capacity for cases staying at hotels宿泊療養確保居室数
atHotelCasesCapPlannedRoom capacity for cases staying at hotels planned for the maximum alert phase最終フェーズにおける宿泊療養施設居室(計画)数
atHotelCasesUTECurrent hotel (room) utilization rate for cases staying at hotels確保居室数に対する宿泊療養者使用率
atHomeCasesNumber of current cases staying at home自宅療養者数
atWelfareFacilityCasesNumber of current cases staying at welfare facilities社会福祉施設等療養者数
unconfirmedCasesNumber of current unconfirmed cases確認中の人数

Data Source

pref

Columns

namedescriptiondescription in Japanese
prefCodePrefecture code都道府県番号
prefJPPrefecture name in Japanese都道府県名(日本語)
prefENPrefecture name in English都道府県名(英語)
populationPopulation estimate in thousands in 20182018 年推計人口(千人)

Data Source

Reference

The function update_data is heavily referred to coronavirus package. Thanks!

Copy Link

Version

Install

install.packages('covid19jp')

Monthly Downloads

1

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Koji Higuchi

Last Published

January 9th, 2021

Functions in covid19jp (0.1.0)

pref_daily

covid19jp

covid19jp: Japanese Covid-19 Datasets
pref

jp_daily

update_data

Update the covid19jp datasets
pref_weekly