powered by
Returns different data quality details of a numeric or categorical variable
check_quality( x, id = 1:length(x), plot = TRUE, numeric = NULL, k = 5, n = ifelse(is.numeric(x) | ttrue(numeric) | class(x) %in% "Date", 5, 2), output = FALSE, ... )
A list of a data.frame with information about data quality of the variable
A variable from a data.frame
ID column to reference the found extreme values
If the variable is numeric, should a boxplot be drawn?
If set to TRUE, forces the variable to be considered numeric
Number of different numeric values in a variable to be considered as numeric
Number of extreme values to extract
Format of the output. If TRUE, optimize for exporting as csv
further arguments passed to boxplot()
check_quality(airquality$Ozone) #For one variable lapply(airquality, check_quality) #For a data.frame lapply(airquality, check_quality, output=TRUE) #For a data.frame, one row per variable
Run the code above in your browser using DataLab