Skip to contents

Summary table

Usage

summar(df, prec = 2)

Arguments

df

A dataframe , var A column in said dataframe

Value

table with summary statistics

Examples

summar(mtcars)
#>      n_missing n_unique minimum   X25.   X50.   X75.    avg variance maximum
#> mpg          0       25   10.40  15.43  19.20  22.80  20.09    36.32   33.90
#> cyl          0        3    4.00   4.00   6.00   8.00   6.19     3.19    8.00
#> disp         0       27   71.10 120.83 196.30 326.00 230.72 15360.80  472.00
#> hp           0       22   52.00  96.50 123.00 180.00 146.69  4700.87  335.00
#> drat         0       22    2.76   3.08   3.70   3.92   3.60     0.29    4.93
#> wt           0       29    1.51   2.58   3.33   3.61   3.22     0.96    5.42
#> qsec         0       30   14.50  16.89  17.71  18.90  17.85     3.19   22.90
#> vs           0        2    0.00   0.00   0.00   1.00   0.44     0.25    1.00
#> am           0        2    0.00   0.00   0.00   1.00   0.41     0.25    1.00
#> gear         0        3    3.00   3.00   4.00   4.00   3.69     0.54    5.00
#> carb         0        6    1.00   2.00   2.00   4.00   2.81     2.61    8.00