calculate_columns_from_existing_data: Cumulative counts from daily counts or daily counts from...

View source: R/processing.R

calculate_columns_from_existing_dataR Documentation

Cumulative counts from daily counts or daily counts from cumulative, dependent on which columns already exist

Description

Checks which columns are missing (cumulative/daily counts) and if one is present and the other not then calculates the second from the first.

Usage

calculate_columns_from_existing_data(data)

Arguments

data

A data frame

Value

A data frame with extra columns if required

See Also

Compulsory processing functions add_extra_na_cols(), complete_cumulative_columns(), fill_empty_dates_with_na()


epiforecasts/covidregionaldata documentation built on June 26, 2022, 1 a.m.