Learn R Programming

tatoo

Overview

tatoo ("table tools") provides functions to combine data.frames in ways that require additional effort in base R, and to add metadata (id, title, ...) that can be used for printing and xlsx export. In addition, the Tatto_report class is provided as a convenient helper to write several such tables to a workbook, one table per worksheet.

Installation

# tatoo is available from CRAN
install.packages("tatoo")

# Or you can install the development version from GitHub:
install.packages("devtools")
devtools::install_github("statistikat/tatoo")

Example

tag_table(head(cars), tt_meta(table_id = "t1", title = "Data about cars"))
mash_table(head = head(cars), tail = tail(cars), mash_method = "row")
mash_table(head = head(cars), tail = tail(cars), mash_method = "col")
comp_table(head = head(cars), tail = tail(cars))
stack_table(head = head(cars), tail = tail(cars))

None of the examples are particularly hard to do in base R, but tatoo provides functions with a clean interface and nice print and export methods for the created objects. Please refer to the package vignette for more examples.

Development Status

tatoo is stable and in maintenance mode. While tatoo is effective at what it does once you figure out how it works, the API is not as nice and intuitive as I intended it to be. It will continue to receive small updates and bugfixes, but it is not planned to implement new features.

Copy Link

Version

Install

install.packages('tatoo')

Monthly Downloads

192

Version

1.1.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Stefan Fleck

Last Published

March 26th, 2023

Functions in tatoo (1.1.2)

as_latex.data.frame

Convert a Data Frame to Latex Code
as_workbook

Convert a Tatoo Table Object to an Excel Workbook
assign_tt_meta

Assign tt_meta elements
as_latex

Convert a Table to Latex Code
rmash

Mash R objects by Rows or Columns
as_lines

Create a line-by-line text representation of an R object
as_latex.Tatoo_report

Convert a Tatoo Report to Latex Code
as_latex.Tagged_table

Convert a Tagged Table to Latex Code
as_latex.Mashed_table

Convert a Mashed Table to Latex Code
flip_names

Flip names and multinames of a Composite Table
is_Tatoo_report

Test if Object is a Tatoo_report
default_kable_options

Default Kable options for as_latex and co
is_Tagged_table

Test If Object is a Tagged_table
print.Tagged_table

Printing Tagged Tables
multinames_to_colspans

Convert multinames to colspans
df_typecast_all

Typecast all columns of a data.frame of a specific type
as_multinames

Create Composite Table multinames from a character vector
is_any_class

Check if any of the classes of the object match a certain string
is_Tatoo_table

Test if objects is a Tatoo_table
is_Stacked_table

Test If Object is a Stacked_table
print.Tatoo_report

Printing Tatoo Reports
open_file

Open a file
meta<-

Set Tagged Table metadata
tatoo

tatoo: Combine and Export Data Frames
mash_method<-

Set mash attributes of a Mashed Table
multinames<-

Set the multinames attribute of a Composite_table
vec_prioritise

Rearrange vector based on priorities
write_worksheet

Write Data to an openxlsx Worksheet
walk_regions

Apply a function to all named regions on an openxlsx Workbook
print.Mashed_table

Printing Mashed Tables
print.Composite_table

Printing Composite Tables
tatoo_table

Tatoo Table
tt_meta

Tagged Table Metadata
sanitize_excel_sheet_names

Sanitize excel sheet names
regions

Get Named Regions of an Excel Sheet as Data.Table
is_col_classes

Check for column classes
spacing<-

Set the spacing of a Stacked_table
print.Stacked_table

Printing Stacked Tables
print.TT_meta

Printing Tagged Table Metadata
str_nobreak

Remove linebreaks and multiple spaces from string
is_class

Check if object is of a certain class
stack_table

Stack Tables
compile_report

Compile Tables Into a Report
tag_table

Tag Tables
as.data.table.Mashed_table

Convert a Mashed Table to a data.table or data.frame
as.data.table.Composite_table

Convert a Composite Table to a data.table or data.frame
mash_table

Mash Tables
as_Composite_table

Coerce to Composite Table
comp_table

Compose Tables
as_latex.Composite_table

Convert a Composite Table to Latex Code
as_Mashed_table

Coerce to Mashed Table