detect_missing_values {daqapo} | R Documentation |
Detect missing values
Description
Function detecting missing values at different levels of aggregation
overview: presents an overview of the absolute and relative number of missing values for each column
column: presents an overview of the absolute and relative number of missing values for a particular column
activity: presents an overview of the absolute and relative number of missing values for each column, aggregated by activity
Usage
detect_missing_values(
activitylog,
level_of_aggregation,
column,
details,
filter_condition
)
Arguments
activitylog |
The activity log |
level_of_aggregation |
Level of aggregation at which missing values are identified (either "overview", "column" or "activity) |
column |
Column name of the column that needs to be analyzed when the level of aggregation is "column" |
details |
Boolean indicating wheter details of the results need to be shown |
filter_condition |
Condition that is used to extract a subset of the activity log prior to the application of the function |
Value
activitylog containing the rows of the original activity log which contain a missing value
Examples
data("hospital_actlog")
detect_missing_values(activitylog = hospital_actlog)
detect_missing_values(activitylog = hospital_actlog, level_of_aggregation = "activity")
detect_missing_values(activitylog = hospital_actlog, level_of_aggregation = "column",
column = "triagecode")