Learn R Programming

covidregionaldata (version 0.8.2)

complete_cumulative_columns: Completes cumulative columns if rows were added with NAs.

Description

If a dataset had a row of NAs added to it (using fill_empty_dates_with_na) then cumulative data columns will have NAs which can cause issues later. This function fills these values with the previous non-NA value.

Usage

complete_cumulative_columns(data)

Arguments

data

a data table

Value

a tibble with NAs filled in for cumulative data columns.