addKable: A convenient method to add kable into a RMarkdown document

Description Usage Arguments Value

View source: R/kable_function.R

Description

A convenient method to add kable into a RMarkdown document

Usage

1
2
3
4
5
6
7
8
addKable(
  data_frame,
  caption = NULL,
  all_before = FALSE,
  var.width = 50,
  varColumn.size = "5cm",
  analysisColumn.size = "4cm"
)

Arguments

data_frame

a data.frame, containing the data to add

caption

a character vector of length one, containing the caption of the table

all_before

a boolean vector of length one, indicatig if all column must be before strata column. Default to FALSE

var.width

a numeric vector of length one, containing the witdh of the variable column

varColumn.size

a character string telling how wide the variable column needs to be, e.g. "10cm", "3in" or "30em".

analysisColumn.size

a character string telling how wide the analysis column(s) needs to be, e.g. "10cm", "3in" or "30em".

Value

a knitr::kable


rgriffier/statsBordeaux documentation built on Aug. 11, 2021, 9:59 a.m.