Skip to contents

Format — set and remove the csfmt_rts_data class

Convert a data.table to a versioned csfmt_rts_data object, or strip the class back off.

set_csfmt_rts_data_v1() csfmt_rts_data_v1()
Convert data.table to csfmt_rts_data_v1 (deprecated)
set_csfmt_rts_data_v2() csfmt_rts_data_v2()
Convert data.table to csfmt_rts_data_v2
set_csfmt_rts_data_v3() csfmt_rts_data_v3()
Convert a data.table to csfmt_rts_data_v3 (clean csfmt; explicit healing)
remove_class_csfmt_rts_data()
Remove class csfmt_rts_data_*

Time-series helpers

Expand, heal, and deduplicate time series within a csfmt_rts_data object.

expand_time_to()
Expand time to
heal_time_csfmt_rts_data_v1()
Provides corresponding healed times (deprecated)
heal_time_csfmt_rts_data_v2()
Provides corresponding healed times
unique_time_series()
Unique time series

Inspect and diagnose

Summarise or fingerprint the structure of a dataset.

identify_data_structure()
Hash the data structure of a dataset for a given column

Example datasets

Bundled real-world and synthetic datasets for examples and testing.

nor_covid19_cases_by_time_location_csfmt_rts_v1
Covid-19 data for PCR-confirmed cases in Norway (nation and county)
nor_covid19_icu_and_hospitalization_csfmt_rts_v1
Norwegian Covid-19 data for ICU and hospitalization
generate_test_data()
Generate test data