Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

customcolumnnames

Determine column names or column types if custom columns are present


Description

Determine column names or column types if custom columns are present.

Usage

customcolumnnames(modelnames, custom.columns, custom.col.pos, types = FALSE)

Arguments

modelnames

A character vector of original model names, before any custom columns are inserted.

custom.columns

The same argument as specified in the link{matrixreg} function.

custom.col.pos

The same argument as specified in the link{matrixreg} function.

types

Return the column types? If FALSE, the column names in the possible presence of custom columns are returned.

Details

This function takes model names (as saved in the attributes of a matrix generated by matrixreg, for example) and the custom.columns and custom.col.pos arguments of link{matrixreg} or related functions and determines the column types ("coefnames", "coef", or "customcol") or model names in the presence of custom columns.

Value

A character vector with column names or types in the possible presence of custom columns. If types = TRUE, the vector contains the values "coefnames" (for the first column), "coef" (for columns with coefficients), or "customcol" (for custom new columns).

Author(s)

Philip Leifeld

See Also


texreg

Conversion of R Regression Output to LaTeX or HTML Tables

v1.37.5
GPL-3
Authors
Philip Leifeld [aut, cre], Claudia Zucca [ctb]
Initial release
2020-06-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.