Skip to contents

Summarises the data structure of a single column inside a dataset. For each combination of granularity_time, granularity_geo, age, and sex it records whether the column is structurally missing, only NA, only data, or a mix of data and NA. The result can be passed to plot() for a visual overview.

Usage

identify_data_structure(x, col, ...)

# S3 method for class 'csfmt_rts_data_v2'
identify_data_structure(x, col, ...)

# S3 method for class '`tbl_Microsoft SQL Server`'
identify_data_structure(x, col, ...)

Arguments

x

An object of type csfmt_rts_data_v2.

col

Column name (character) whose data structure is summarised.

...

Arguments passed to or from other methods.

Value

csfmt_rts_data_structure_hash_v2, a summary object that can be plotted.

Examples

cstidy::generate_test_data() %>%
  cstidy::set_csfmt_rts_data_v2() %>%
  cstidy::identify_data_structure("deaths_n") %>%
  plot()