check_quality {clickR} | R Documentation |
Checks data quality of a variable
Description
Returns different data quality details of a numeric or categorical variable
Usage
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,
...
)
Arguments
x |
A variable from a data.frame |
id |
ID column to reference the found extreme values |
plot |
If the variable is numeric, should a boxplot be drawn? |
numeric |
If set to TRUE, forces the variable to be considered numeric |
k |
Number of different numeric values in a variable to be considered as numeric |
n |
Number of extreme values to extract |
output |
Format of the output. If TRUE, optimize for exporting as csv |
... |
further arguments passed to boxplot() |
Value
A list of a data.frame with information about data quality of the variable
Examples
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
[Package clickR version 0.9.39 Index]