f_kable: Print Kable in R-Markdown

View source: R/f - Kable.R

f_kableR Documentation

Print Kable in R-Markdown

Description

Prints Kable in R-Markdown (PDF only, not HTML).

Usage

f_kable(
  df.input,
  c.caption = "Add nice caption through 'c.caption'",
  c.position = "center",
  v.align = NULL,
  v.width.cm = 2,
  n.angle = NULL,
  n.font.size = 8,
  c.latex_options = "basic",
  v.grey.col = NULL,
  b.grey.col = TRUE,
  n.top = "all"
)

Arguments

df.input

Data frame to put in kable table.

c.caption

Add nice caption.

c.position

Options: "center", "left" (default: "center")

v.align

Vector containing "l", "c", "r" indicating how to align each column (default: NULL)

v.width.cm

Width of column (default: 2)

n.angle

Angle of text in header (default: NULL).

n.font.size

Font size (default: 8).

c.latex_options

String of latex options (default: "basic").

v.grey.col

Column numbers to give grey background (default: NULL).

b.grey.col

Add grey column to columns with total in header? (default: TRUE).

n.top

Number of rows to print (default: "all").

Details

-

Value

Kable output.

Author(s)

Pieter Overdevest

Examples

kable.output <- f_kable(

       df.input            = mtcars,
       c.caption           = "Add nice caption",
       c.position          = "center",
       v.align             = NULL,
       v.width.cm          = 2,
       n.angle             = NULL,
       n.font.size         = 8,
       c.latex_options     = "basic",
       v.grey.col          = NULL,
       b.grey.col          = TRUE,
       n.top               = "all"
)

pieterov/generaltoolbox documentation built on Jan. 25, 2025, 10:32 a.m.