active_cases: Returns a dataframe of active Covid-19 cases in desired...

Description Usage Arguments Value Examples

View source: R/myfun.R

Description

Perform data wrangling and cleaning using the API for the Covid-19 cases in Canada. It processes the API and returns the data corresponding to one province which is passed on as the argument. If user passes empty argument, so by default Canada is used which returns the data of whole Canada as a whole. The returned data is a data frame and contains the columns including the date, province name, active cases, change is active cases, cumulative cases, cumulative deaths and cumulative recovered.

Usage

1
active_cases(provinceName = "Canada")

Arguments

provinceName

a character/string depicting the name of the province

Value

Data frame for the Covid-19 active cases corresponding to a particular province

Examples

1
active_cases("Alberta")

Jagdeep14/R_package_test documentation built on Feb. 14, 2022, 12:43 a.m.