knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
This package contains the shiny app which explores the data of COVID-19. This is an package for cwd course assignment. You could use this package to check the daily COVID-19 cases data of Chile or Bolivia using the launch_dt() function. Or use the launch_confirm_period() function to see the confirmed cases of your selected time period in these two country.
The goal of cwdcovid19 is to ...
You can install the development version from GitHub with:
# install.packages("devtools") devtools::install_github("etc5523-2020/r-package-assessment-1029YanMa")
This package contains the dataset from the 'coronavirous' R package and provide a long form and a wide form of the data:
library(cwdcovid19) library(tibble) library(dplyr) coronavirus %>% head(10) coronavirus_long %>% head(10) coronavirus_wide %>% head(10)
You could use the launch_dt() function to see the datatable of COVID-19 daily cases data of Chile or Bolivia. Please note that don't put anything in the (), otherwise there will be an error. You could switch the country you want to explore in the shiny app after run this function.
You could use the launch_confirm_period() function to see the line plot of confirmed cases data of Chile and Bolivia, and compare the data gap between the two countries within your selected time period. Please note that don't put anything in the (), otherwise there will be an error. You could select your interested time period in the shiny app after run this function.
By running the launch_app() function, you could see both the timetable and plot.
There's another function: n_countries() in this package. This would provide some space for the users to explore the dataset by themselves. For example, maybe you would like to know how many countries reported newly confirmed cases on a certain date.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.