outregtab: Output-formated regression table

Description Usage Arguments

View source: R/outregtab.r

Description

This function transform regression table made by regtab into some output formats like pdf, HTML, MSWord, etc, using knitr::kable and flextable::flextable

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
outregtab(
  x,
  colnames = NULL,
  caption = NULL,
  header_rows = NULL,
  align = NULL,
  indent = NULL,
  packing = NULL,
  footnote = NULL,
  fontsize = 7,
  digits = 3,
  outpkg = c("kable", "flextable")
)

Arguments

x

a data.frame or tibble object

colnames

a list of column names including "old one" = "new one"

caption

strings of table caption

header_rows

a list of vector like c("name" = number of columns, ...)

align

strings of table align. The left-aligned, center-aligned, and right-aligned columns are "l", "c", and "r", respectively.

indent

a list of numeric vector

packing

a list of indent with subcaption like "title" = c(start, end)

footnote

strings of table footnote

fontsize

numeric of font size of table. Default is 7.

digits

numeric of digits of table. Default is 3.

outpkg

which packages(c("kable", "flextable")) uses.


KatoPachi/Rkato documentation built on Dec. 18, 2021, 2:42 a.m.