Get (weighted) summary statistics
summary_statistics.Rd
This function computes the summary statistics of x
.
Ejemplos
summary_statistics(mtcars, disp)
#> var N Min Q25 Media Mediana Q75 Max sd
#> 1 disp 32 71.1 120.825 230.7219 196.3 326 472 123.9387
mtcars %>%
group_by(cyl) %>%
summary_statistics(mpg)
#> # A tibble: 3 × 10
#> cyl var N Min Q25 Media Mediana Q75 Max sd
#> <dbl> <chr> <int> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 4 mpg 11 21.4 22.8 26.7 26 30.4 33.9 4.51
#> 2 6 mpg 7 17.8 18.6 19.7 19.7 21 21.4 1.45
#> 3 8 mpg 14 10.4 14.4 15.1 15.2 16.2 19.2 2.56