analyse_CPAD: Analyse CPAD

Description Usage Arguments Value Author(s) Examples

View source: R/analyse_CPAD.R

Description

This function analyses the coronavirus proportional abundance distribution (CPAD)

Usage

1
analyse_CPAD(propab.matrix, propab.df, sumCases, avCases, saveplots = TRUE)

Arguments

propab.matrix:

dataframe. The global active cases/country population (proprtional abundance) by country and day.

propab.df:

dataframe. The proportional abundance dataframe of htree columns: Country, Day, and propAb.

sumCases:

numeric vector. The daily sum of active SARS-CoV-2 cases; its length must be equal that the temporal slices present in propab.df.

avCases:

numeric vector. The daily average of active SARS-CoV-2 cases; its length must be equal that the temporal slices present in propab.df.

saveplots:

TRUE or FALSE. Save plots related to de distributions in your wd.Default TRUE.

Value

The function returns the CPAD dataframe to your Global Environment with the corresponding statistics for each day. If saveplots is TRUE, the plots folder is created in your wd, containing different folder with plots.

Author(s)

Simon P Castillo spcastil@uc.cl.

Examples

1
analyse_CPAD(propab.matrix=propab_matrix, propab.df=propab_df, sumCases=sumCases, avCases=avCases, saveplots= TRUE)

simonpcastillo/CPAD documentation built on Dec. 31, 2020, 7:27 a.m.