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 the state of the column. The four states are structurally missing, only NA, only data, and a mix of data and NA. Pass the result 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.

Deprecated

The csfmt_rts_data_v2 method of identify_data_structure() is deprecated along with the format it dispatches on. Nothing warns at run time. See set_csfmt_rts_data_v2(). Neither the generic itself nor its tbl_Microsoft SQL Server method is deprecated.

Examples

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