correctVarNames: Modify all entries in a data frame such that xtable has no...

View source: R/correctVarNames.r

correctVarNamesR Documentation

Modify all entries in a data frame such that xtable has no problems displaying them

Description

Replace all relevant characters in the entries and row- and colnames of a data frame such that xtable does not complain displaying them.

Usage

correctVarNames(tab, rowcol = TRUE, cols = 1:ncol(tab))

Arguments

tab

The data frame to be formatted.

rowcol

If TRUE, row- and colnames are reformatted.

cols

Provide a vector of column indices of columns whose entries are to be reformatted. If NA, none of the entries of the initial data frame is formatted.

Author(s)

Kaspar Rufibach (maintainer), kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch


reporttools documentation built on April 11, 2025, 6 p.m.