Description Usage Arguments Value References Examples
View source: R/InfectionCanada.R
Function that demonstrates the COVID-19 infection data in Canada. User can enter the date of interest and interested province as the arguments to better analyze Canadian COVID-19 infections.
1 | InfectionCanada(dateOfInterest = "none", province = "none")
|
dateOfInterest |
The string indicates the date of interest(dd-mm-yyyy) |
province |
The string that indicates the province of interest in Canada. |
Returns a data frame with 40 different columns that each indicates COVID-19 related counts.
Ponce et al. (2021). covid19.analytics: An R Package to Obtain, Analyze and Visualize Data from the Coronavirus Disease Pandemic. Journal of Open Source Software, 6(59), 2995. https://doi.org/10.21105/joss.02995
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Example 1:
#Use the function without arguments "all" that generates the entire Canadian infection data.
CanadaInfection <- InfectionCanada("all", "all")
CanadaInfection
# Example 2:
#Use the function only with the first argument.
CanadaInfection <- InfectionCanada("01-01-2021")
CanadaInfection
# Example 3:
#Use the function only with the second argument.
CanadaInfection <- InfectionCanada(, "Ontario")
CanadaInfection
# Example 4:
#Use the function with both arguments.
CanadaInfection <- InfectionCanada("01-01-2021", "Ontario")
CanadaInfection
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.