Aliases: data.frame_tidiers tidy.data.frame augment.data.frame glance.data.frame
Keywords:
### ** Examples td <- tidy(mtcars)
Warning: Data frame tidiers are deprecated and will be removed in an upcoming release of broom.
td
# A tibble: 11 × 13 column n mean sd median trimmed mad min max range skew <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> 1 mpg 32 20.1 6.03 19.2 19.7 3.65 10.4 33.9 23.5 0.640 2 cyl 32 6.19 1.79 6 6.23 2 4 8 4 -0.183 3 disp 32 231. 124. 196. 223. 94.8 71.1 472 401. 0.400 4 hp 32 147. 68.6 123 141. 52 52 335 283 0.761 5 drat 32 3.60 0.535 3.70 3.58 0.475 2.76 4.93 2.17 0.279 6 wt 32 3.22 0.978 3.32 3.15 0.517 1.51 5.42 3.91 0.444 7 qsec 32 17.8 1.79 17.7 17.8 0.955 14.5 22.9 8.4 0.387 8 vs 32 0.438 0.504 0 0.423 0 0 1 1 0.252 9 am 32 0.406 0.499 0 0.385 0 0 1 1 0.382 10 gear 32 3.69 0.738 4 3.62 1 3 5 2 0.555 11 carb 32 2.81 1.62 2 2.65 1 1 8 7 1.10 # … with 2 more variables: kurtosis <dbl>, se <dbl>
glance(mtcars)
Warning: Data frame tidiers are deprecated and will be removed in an upcoming release of broom.
# A tibble: 1 × 4 nrow ncol complete.obs na.fraction <int> <int> <int> <dbl> 1 32 11 32 0
library(ggplot2)
# compare mean and standard deviation ggplot(td, aes(mean, sd)) + geom_point() + geom_text(aes(label = column), hjust = 1, vjust = 1) + scale_x_log10() + scale_y_log10() + geom_abline()