table_of_medians: Table showing median, IQR, and range, for one or more numeric...

Description Usage Arguments Value Examples

Description

Table showing median, IQR, and range, for one or more numeric variables

Usage

1

Arguments

data

A data frame

...

Comma-separated list of variables to calculate medians for.

group

An optional grouping variable, e.g. trial arm

Value

A data frame with descriptive statistics (median, IQR, range) for the selected variables.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
    data(mtcars)
    table_of_medians(mtcars, wt, hp)
    table_of_medians(mtcars, wt, hp, group = cyl)

    data(starwars)
    table_of_means(starwars,
                   height, mass, birth_year)
                   
    table_of_means(starwars,
                   height, mass, birth_year, 
                   group = gender)

ewancarr/report-tools documentation built on May 10, 2019, 10:01 a.m.