Learn R Programming

covidregionaldata (version 0.8.2)

calculate_columns_from_existing_data: 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