lt_spacerColumns_default: Compute default positions of spacer columns in calls to...

lt_spacerColumns_defaultR Documentation

Compute default positions of spacer columns in calls to latexTable().

Description

spacerColumns_default specifies the default spacerColumns argument in calls to latexTable. It takes the values of mat, SE_table, and rowNames that are passed to latexTable. From these values, it computes the default positions of spacer columns:

  • If SE_table is FALSE, there is a spacer column between every column in mat.

  • If SE_table is TRUE, there is a spacer column after every even-numbered column in mat, except for the last column.

  • If rowNames is not NULL, a spacer column is inserted between the table's row names and the first column of data.

Usage

lt_spacerColumns_default(
  mat = parent.frame()$mat,
  SE_table = parent.frame()$SE_table,
  rowNames = parent.frame()$rowNames
)

Arguments

mat

Matrix.

SE_table

Logical variable.

rowNames

Vector.

Details

The function is not exported and is intended to be called only by \linkIntlatexTable.

Value

A vector of integers.


jbullock35/Bullock documentation built on April 1, 2022, 6:21 p.m.