Learn R Programming

gtExtras (version 0.5.0)

create_sum_table: Create a summary table from a dataframe

Description

Create a summary table from a dataframe

Usage

create_sum_table(df)

Value

A summary dataframe as a tibble

Arguments

df

a dataframe or tibble

Examples

Run this code
if (FALSE) {
create_sum_table(iris)
#>   # A tibble: 5 × 7
#>   type    name         value       n_missing  Mean Median     SD
#>                             
#> 1 numeric Sepal.Length          0  5.84   5.8   0.828
#> 2 numeric Sepal.Width           0  3.06   3     0.436
#> 3 numeric Petal.Length          0  3.76   4.35  1.77
#> 4 numeric Petal.Width           0  1.20   1.3   0.762
#> 5 factor  Species               0  NA     NA    NA
}

Run the code above in your browser using DataLab