compare_completeness {eHDPrep} | R Documentation |
Compare Completeness between Datasets
Description
Produces a density plot comparing the completeness of two datasets
(tbl_a
and tbl_b
) for variables (if dim
== 2, default)
or row (if dim
== 1). The label used to identify the dataset's density
curve can be specified using tbl_a_lab
and tbl_b_lab
.
Usage
compare_completeness(tbl_a, tbl_b, dim = 2, tbl_a_lab = NULL, tbl_b_lab = NULL)
Arguments
tbl_a |
Data frame of the first data frame to compare. |
tbl_b |
Data frame of the second data frame to compare. |
dim |
Integer. Dimension to measure completeness on. 2 (Default) measures completeness by variable. 1 measures completeness by row. |
tbl_a_lab |
String to be used to label |
tbl_b_lab |
String to be used to label |
Value
Plot showing densities of completeness across both datasets.
See Also
Other measures of completeness:
assess_completeness()
,
completeness_heatmap()
,
plot_completeness()
,
row_completeness()
,
variable_completeness()
Examples
data(example_data)
compare_completeness(example_data, strings_to_NA(example_data), dim = 2,
"raw", "cleaned")