knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
This R package aims to implementing the computational framework in the paper Tracking and forecasting milepost moments of the epidemic in the early outbreak framework and applications to the COVID-19 based entirly on the Vicky-Zh's work.
You can install it as a binary package or source package.
Install from binary:
pkgfilepath
install.packages(pkgfilepath, repos = NULL)
Install from source code:
install.packages("devtools")
devtools::install_github("YuanchenZhu2020/DemoPreTurningPointsCOVID19")
# install as a binary package. # 1. download binary package to your PC # 2. get the path of package file install.packages(pkgfilepath, repos = NULL) # install as a source code package (requires RTools) # install.packages("devtools") devtools::install_github("YuanchenZhu2020/DemoPreTurningPointsCOVID19")
Function List:
Dataset List:
If you want to see details of each function or dataset, use help(name)
. Or you can download the referance manual.
library(DemoPreTurningPointsCOVID19) # single begining time single_result <- prediction(COVID19_CN, M = 5, Beginning_Time = "2020-01-29") # multiple begining time period_result <- period_predict(COVID19_CN, M = 5, Beginning_Time = "2020-01-29", period = 32)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.