tableHeader: Generate a tableHeader

View source: R/tex-table.R

tableHeaderR Documentation

Generate a tableHeader

Description

A passthrough function that creates a table header appropriate to the class of the data object being passed. Expected classes are:

  • CrossTabVar

  • ToplineVar

  • ToplineCategoricalArray

Title indicates whether the title should be displayed, or not (as in the case of multiple banners displayed underneath each other, the title only appears on the top one). Assumes that '\banner[a-z]' macros are defined in the preamble

Usage

tableHeader(var, theme)

## Default S3 method:
tableHeader(var, theme)

## S3 method for class 'CrossTabVar'
tableHeader(var, theme)

## S3 method for class 'ToplineVar'
tableHeader(var, theme)

## S3 method for class 'ToplineCategoricalArray'
tableHeader(var, theme)

Arguments

var

An object of class ToplineCategoricalArray

theme

A theme object from themeNew

Details

Importantly, this also controls the relative widths of the columns.


Crunch-io/crunchtabs documentation built on Jan. 31, 2023, 12:14 p.m.