data_frame_to_latex_table: Function to format a data frame to a LaTeX table.

View source: R/data_frame_to_latex_table.R

data_frame_to_latex_tableR Documentation

Function to format a data frame to a LaTeX table.

Description

data_frame_to_latex_table uses the xtable package.

Usage

data_frame_to_latex_table(
  df,
  caption = "Example caption...",
  label = "tab:",
  caption_location = "top",
  digits = NULL
)

Arguments

df

Input data frame.

caption

Text for LaTeX's table caption.

label

Label for LaTeX's table.

caption_location

Where to place the table's caption.

digits

Number of digits to print for numeric variables.

Value

Invisible character vector.

Author(s)

Stuart K. Grange

Examples


# Format a data frame 
data_frame_to_latex_table(ggplot2::mpg)


skgrange/threadr documentation built on April 15, 2024, 9:35 p.m.