prGetDescHeader {Gmisc}R Documentation

Retrieve basic description stats by header

Description

Helper for [getDescriptionStatsBy] that retrieves the basic header names.

Usage

prGetDescHeader(by, html, header_count, already_table_format = FALSE)

Arguments

by

The variable that you want to split into different columns

html

If HTML compatible output should be used. If FALSE it outputs LaTeX formatting

header_count

Set to TRUE if you want to add a header count, e.g. Smoking; No. 25 observations, where there is a new line after the factor name. If you want a different text for the second line you can specifically use the sprintf formatting, e.g. "No. %s patients".

already_table_format

Just a boolean as we use this in the total column

Value

A vector with basic headers


[Package Gmisc version 3.0.3 Index]