df_to_table: df_to_table

View source: R/df_to_table.R

df_to_tableR Documentation

df_to_table

Description

df_to_table

Usage

df_to_table(df, path = "~/MSc/Writing/Report/auto_tbl_fig/", file_name,
  v_lines = NULL, h_lines = c(1), case = 1, n_digits = 4,
  verbose = FALSE, model_name = NULL, norm_cm = FALSE)

Arguments

df

data frame or tibble

path

directory to the .tex file.

file_name

name of the .tex file.

v_lines

vertical lines in table.

h_lines

horizontial lines in table.

case

correspond to different types of tables.

n_digits

The number of digits in the table. Default is 4 for numeric columns.

verbose

default 'FALSE'. Set to 'TRUE' for printing the string.

model_name

Model name for CM.

norm_cm

is CM normalized?

Value

saved file/string with a default tabular table.

Examples

## Not run: 
  library(tidyverse)
  df <- iris %>% group_by(Species) %>% summarise_all(funs(mean))
  df_to_table(df, path = "~/Downloads/", file_name = "test", v_lines = NULL, h_lines = c(1), case = 1, verbose = FALSE)

## End(Not run)

anderslaunerbaek/homemade documentation built on Sept. 18, 2022, 6:47 a.m.