library(knitr) opts_chunk$set(fig.align = "center", out.width = "90%", fig.width = 6, fig.height = 5.5, dev.args=list(pointsize=10), par = TRUE, # needed for setting hook collapse = TRUE, # collapse input & ouput code in chunks warning = FALSE) knit_hooks$set(par = function(before, options, envir) { if(before && options$fig.show != "none") par(family = "sans", mar=c(4.1,4.1,1.1,1.1), mgp=c(3,1,0), tcl=-0.5) }) set.seed(1) # for exact reproducibility
covid19Canada
is an R package to demonstrate and further analyzes Canadian COVID-19 infection and vaccination information extracted from covid19.analytics package. This includes the main components: DESCRIPTION, NAMESPACE, man subdirectory and R subdirectory. Additionally, licence, README and subdirectories vignettes, tests, data and inst are also explored. The package was developed using R version 4.1.1 and Mac platform. This document gives a tour of covid19Canada (version 0.1.0). It was written in R Markdown.
To download covid19Canada, use the following commands:
require("devtools") install_github("RicoZong/covid19Canada", build_vignettes = TRUE) library("covid19Canada")
To list all sample functions available in the package:
ls("package:covid19Canada")
To list all sample datasets available in the package:
data(package = "covid19Canada")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.