library('summarytools')
Testing the package summarytools
Standard settings
dfSummary(iris)
Data Frame Summary
iris
Dimensions: 150 x 5
Duplicates: 1
No | Variable | Stats / Values | Freqs (% of Valid) | Graph | Valid | Missing |
---|---|---|---|---|---|---|
1 | Sepal.Length [numeric] | Mean (sd) : 5.8 (0.8) min < med < max: 4.3 < 5.8 < 7.9 IQR (CV) : 1.3 (0.1) | 35 distinct values | . . : : : : : : : : : : : : : : : : : : : : : : : : | 150 (100.0%) | 0 (0.0%) |
2 | Sepal.Width [numeric] | Mean (sd) : 3.1 (0.4) min < med < max: 2 < 3 < 4.4 IQR (CV) : 0.5 (0.1) | 23 distinct values | : : . : : : : : . . : : : : : : | 150 (100.0%) | 0 (0.0%) |
3 | Petal.Length [numeric] | Mean (sd) : 3.8 (1.8) min < med < max: 1 < 4.3 < 6.9 IQR (CV) : 3.5 (0.5) | 43 distinct values | : : . : : : : . : : : : : . : : . : : : : : . | 150 (100.0%) | 0 (0.0%) |
4 | Petal.Width [numeric] | Mean (sd) : 1.2 (0.8) min < med < max: 0.1 < 1.3 < 2.5 IQR (CV) : 1.5 (0.6) | 22 distinct values | : : : . . : : : : : . : : : : : . : : : | 150 (100.0%) | 0 (0.0%) |
5 | Species [factor] | 1. setosa 2. versicolor 3. virginica | 50 (33.3%) 50 (33.3%) 50 (33.3%) | IIIIII IIIIII IIIIII | 150 (100.0%) | 0 (0.0%) |
With images
dfSummary(iris,
plain.ascii = FALSE,
style = "grid",
graph.magnif = 0.75,
valid.col = FALSE,
tmp.img.dir = "plots")
temporary images written to '/Users/seb/Documents/Projects/00_websites/sbloggel/posts/2024-09-17-testing-the-package-summarytools/plots'
Data Frame Summary
iris
Dimensions: 150 x 5
Duplicates: 1
No | Variable | Stats / Values | Freqs (% of Valid) | Graph | Missing |
---|---|---|---|---|---|
1 | Sepal.Length [numeric] |
Mean (sd) : 5.8 (0.8) min < med < max: 4.3 < 5.8 < 7.9 IQR (CV) : 1.3 (0.1) |
35 distinct values | ![]() |
0 (0.0%) |
2 | Sepal.Width [numeric] |
Mean (sd) : 3.1 (0.4) min < med < max: 2 < 3 < 4.4 IQR (CV) : 0.5 (0.1) |
23 distinct values | ![]() |
0 (0.0%) |
3 | Petal.Length [numeric] |
Mean (sd) : 3.8 (1.8) min < med < max: 1 < 4.3 < 6.9 IQR (CV) : 3.5 (0.5) |
43 distinct values | ![]() |
0 (0.0%) |
4 | Petal.Width [numeric] |
Mean (sd) : 1.2 (0.8) min < med < max: 0.1 < 1.3 < 2.5 IQR (CV) : 1.5 (0.6) |
22 distinct values | ![]() |
0 (0.0%) |
5 | Species [factor] |
1. setosa 2. versicolor 3. virginica |
50 (33.3%) 50 (33.3%) 50 (33.3%) |
![]() |
0 (0.0%) |