Skip to contents

Describe 2

Usage

describe2(df, ...)

Arguments

df

<data.frame> desc

...

<dots> tidyselect columns

Value

<tibble> of summary statistics

Examples

describe2(mock_provider(2000:2020))
#> # A tibble: 3 × 13
#>   column type       n   min   mean    med   max   iqr     sd    mad distribution
#>   <chr>  <chr>  <int> <int>  <dbl>  <dbl> <int> <dbl>  <dbl>  <dbl> <chr>       
#> 1 year   <int>  84420  2000  2010   2010   2020   10  6.13e0 7.41e0 ▇▅▅▅▅▅▅▅▅▅  
#> 2 payme… <int> 625178 10176 14885. 14380. 19969 5062. 3.04e3 4.42e3 ▇▇▃▇▅▁▃▇▇▃  
#> 3 group  <chr>     42     1     1      1      1    0  0      0    
#> # ℹ 2 more variables: uniq <int>, top <chr>

describe2(mock_forager(200))
#> # A tibble: 4 × 13
#>   column  type       n   min   mean   med   max   iqr     sd   mad distribution
#>   <chr>   <chr>  <dbl> <dbl>  <dbl> <dbl> <dbl> <dbl>  <dbl> <dbl> <chr>       
#> 1 class   <ord>   296   1      1.48    1     2     1   0.501  0    ▇▁▁▁▁▁▁▁▁▇  
#> 2 payer   <fct>  1044   1      5.22    6     9     4   2.54   2.97 ▇▃▃▃▅▅▅▃    
#> 3 balance <dbl> 27583.  8.47 138.    127.  513.  111. 92.0   83.5  ▅▇▇▅▂▂▁▁▁▁▁ 
#> 4 id      <chr>  1200   6      6       6     6     0   0      0    ▇           
#> # ℹ 2 more variables: uniq <int>, top <chr>