enw_filter_report_dates | R Documentation |
This is a helper function which allows users to create
truncated data sets at past time points from a given larger data set.
This is useful when evaluating nowcast performance against fully
observed data. Users may wish to combine this function with
enw_filter_reference_dates()
.
enw_filter_report_dates(obs, latest_date, remove_days)
obs |
A |
latest_date |
Date, the latest report date to include in the returned dataset. |
remove_days |
Integer, if |
A data.table filtered by report date
Preprocessing functions
enw_add_delay()
,
enw_add_max_reported()
,
enw_add_metaobs_features()
,
enw_assign_group()
,
enw_complete_dates()
,
enw_construct_data()
,
enw_extend_date()
,
enw_filter_delay()
,
enw_filter_reference_dates()
,
enw_flag_observed_observations()
,
enw_impute_na_observations()
,
enw_latest_data()
,
enw_metadata()
,
enw_metadata_delay()
,
enw_missing_reference()
,
enw_preprocess_data()
,
enw_reporting_triangle()
,
enw_reporting_triangle_to_long()
# Filter by date
enw_filter_report_dates(germany_covid19_hosp, latest_date = "2021-09-01")
# Filter by days
enw_filter_report_dates(germany_covid19_hosp, remove_days = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.