data_chart.Rd
This function prepares the dataset with some filterings, groupings and summarizings to be used into plotting codes of the application.
data_chart(dataset = covidData, group_byparameter)
dataset | This is the dataset to be processed |
---|---|
group_byparameter | This is the column of the dataset to be used inside of groupby() function together with the column "Date" |
The dataset processed to be used to plot the chart
data_chart(dataset=covidData, group_byparameter="location")#> # A tibble: 44,326 x 8 #> Date location `Cumulative Cas… `Cumulative Dea… `Daily Cases` #> <date> <chr> <dbl> <dbl> <dbl> #> 1 2020-02-01 Afghani… 0 0 0 #> 2 2020-02-01 Algeria 0 0 0 #> 3 2020-02-01 Armenia 0 0 0 #> 4 2020-02-01 Austral… 9 0 2 #> 5 2020-02-01 Austria 0 0 0 #> 6 2020-02-01 Azerbai… 0 0 0 #> 7 2020-02-01 Bahrain 0 0 0 #> 8 2020-02-01 Belarus 0 0 0 #> 9 2020-02-01 Belgium 0 0 0 #> 10 2020-02-01 Brazil 0 0 0 #> # … with 44,316 more rows, and 3 more variables: `Daily Cases smoothed` <dbl>, #> # `Daily Deaths` <dbl>, `Daily Deaths smoothed` <dbl>