covidR-api

所属分类:生物医药技术
开发工具:R
文件大小:86KB
下载次数:0
上传日期:2023-05-14 15:27:07
上 传 者sh-1993
说明:  来自约翰霍普金斯大学系统科学与工程中心的covidR-api、R api到新冠肺炎数据
(covidR-api,R API to COVID-19 data from Johns Hopkins University Center for Systems Science and Engineering)

文件列表:
DESCRIPTION (364, 2020-03-24)
NAMESPACE (281, 2020-03-24)
R (0, 2020-03-24)
R\api.R (2392, 2020-03-24)
R\utils.R (680, 2020-03-24)
covidR.Rproj (303, 2020-03-24)
examples (0, 2020-03-24)
examples\demo1.R (649, 2020-03-24)
examples\demo2.R (786, 2020-03-24)
examples\forecasting_as_in_nCOVID19_app.R (2284, 2020-03-24)
examples\plotARIMAfit.png (83510, 2020-03-24)
man (0, 2020-03-24)
man\API_URL.Rd (381, 2020-03-24)
man\covid_api_request.Rd (535, 2020-03-24)
man\dot-check_response_status.Rd (513, 2020-03-24)
man\get_country_list.Rd (286, 2020-03-24)
man\get_data_by_country.Rd (891, 2020-03-24)

# covidR-api ## How to install? ```r devtools::install_github("CaRdiffR/covidR-api") ``` ```r library("covidR") ``` ## How to use? A couple of examples: ```r > get_data_by_country("Italy") province country reportDate cases dead recovered 1 Italy 2020-02-24 229 7 1 2 Italy 2020-02-23 155 3 2 3 Italy 2020-02-21 20 1 0 ... ``` ```r > get_data_by_country("Poland", from = "2020-03-10") province country reportDate cases dead recovered 1 Poland 2020-03-11 31 0 0 2 Poland 2020-03-12 49 1 0 3 Poland 2020-03-10 22 0 0 4 Poland 2020-03-13 68 2 0 ... ``` There's also more general function that accepts more flexible syntax: ```r > covid_api_request("?country=Spain") ``` ## Important The data comes straight from database, so it's not cleaned. Eg. dates are not in a date format. To see how to get started with processing the data visit `examples/` folder. ## Examples This is an example plot with ARIMA fit to logarithm of number of cases for 6 different countries. ![ARIMA fit](https://github.com/CaRdiffR/covidR-api/blob/master/examples/plotARIMAfit.png) ## More Data comes from this API https://github.com/GregVes/covid-19-api-server Original data source is the Johns Hopkins University Center for Systems Science and Engineering's data repository: https://github.com/CSSEGISandData/COVID-19

近期下载者

相关文件


收藏者