View source: R/check_quality.R
check_quality | R Documentation |
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,
...
)
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() |
A list of a data.frame with information about data quality of the variable
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.