demographics: Easy demographics tables.

Description Usage Arguments Value Author(s)

View source: R/demographics.R

Description

Functions for easy construction of demographics tables.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## S3 method for class 'numeric'
demographics(object, by, style, digits)
## S3 method for class 'logical'
demographics(object, by, style, digits)
## S3 method for class 'factor'
demographics(object, by, style, digits)
## S3 method for class 'Surv'
demographics(object, by, style, digits)
## Default S3 method:
demographics(object, by, style, digits)
## S3 method for class 'data.frame'
demographics(object, by, style, digits)

Arguments

object

an object to summarise, either a vector or data frame.

by

a list of logical vectors, or a character vector, specifying the groups to summarize by.

style

details

digits

numeric precision

Value

A character matrix. See the vignette.

Author(s)

Toby Johnson Toby.x.Johnson@gsk.com


tobyjohnson/gtx documentation built on Aug. 30, 2019, 8:07 p.m.