-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdlookr.R
More file actions
68 lines (46 loc) · 1.58 KB
/
dlookr.R
File metadata and controls
68 lines (46 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
install.packages("dlookr")
pacman::p_load(tidyverse,dlookr)
data(flights)
dim(flights)
flights
diagnose(flights)
diagnose_numeric(flights)
diagnose_category(flights)
diagnose_outlier(flights)
diagnose_outlier(flights) |>
filter(outliers_cnt >0)
plot_normality(flights, distance)
carseats <-data(Carseats)
plot_correlate()
# Calculates the all categorical variables
all_var <- univar_numeric(heartfailure)
# Print univar_numeric class object
all_var
# Calculates the platelets, sodium variable
univar_numeric(heartfailure, platelets, sodium)
# Summary the all case : Return a invisible copy of an object.
stat <- summary(all_var)
# Summary by returned object
stat
# Statistics of numerical variables normalized by Min-Max method
summary(all_var, stand = "minmax")
# Statistics of numerical variables standardized by Z-score method
summary(all_var, stand = "zscore")
# one plot with all variables
plot(all_var)
# one plot with all normalized variables by Min-Max method
plot(all_var, stand = "minmax")
# one plot with all variables
plot(all_var, stand = "none")
# one plot with all robust standardized variables
plot(all_var, viz = "boxplot")
# one plot with all standardized variables by Z-score method
plot(all_var, viz = "boxplot", stand = "zscore")
# individual boxplot by variables
plot(all_var, indiv = TRUE, "boxplot")
# individual histogram by variables
plot(all_var, indiv = TRUE, "hist")
# individual histogram by robust standardized variable
plot(all_var, indiv = TRUE, "hist", stand = "robust")
# plot all variables by prompt
plot(all_var, indiv = TRUE, "hist", prompt = TRUE)