table_of_means: Table showing mean, SD, range, for one or more numeric...

Description Usage Arguments Value Examples

Description

Table showing mean, SD, range, for one or more numeric variables

Usage

1

Arguments

data

A data frame

...

Comma-separated list of variables to calculate means for.

group

An optional grouping variable, e.g. trial arm

Value

A data frame with descriptive statistics (mean, SD, range) for the selected variables.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
    data(mtcars)
    table_of_means(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.