summaryTable: Create Stratified Summary Tables

Description Usage Arguments Value Author(s)

View source: R/summaryTable.R

Description

Creates a summary table stratified by a categorical variable. If being used for the generation of a report, it is recommended to use the pander function to format the table. Supports the use of weighted data.

Usage

1
2
summaryTable(vect, categories = c(), catname = "", missingValues = c(),
  weights = c())

Arguments

vect

The vector of data to be summarized. It should be a continuous variable.

categories

The vector of categories. If left undefined, a simple summary of the vect vector will be performed.

catname

The name of the categories. Defaults to the name of the category vector.

missingValues

An optional vector containing the codes of the missing values.

weights

An optional vector containing the weights of the data.

Value

Returns a table of stratified summaries.

Author(s)

Phil Boileau, philippe.boileau (at) rimuhc.ca


gevamaimon/CLSAR documentation built on May 17, 2019, 1:53 p.m.