This function performs a series of data quality checks on a given dataframe, including checking the data structure, missing values, data accuracy, negative values, outliers, sample size, duplicate rows, and duplicate columns.
Usage
check_data_quality(df)
Value
A message indicating the results of each data quality check.
df <- data.frame(w = c(7, 8, 180, 7), x = c("a", "b", "c", "a"),
y = c(4, NA, -6, 4), z = c(7, 8, 180, 7))
# Check the data quality of the example dataframecheck_data_quality(df)