Learn R Programming

tsg

The tsg package provides a set of functions for generating frequency tables, cross-tabulations, and formatted output tables. It is designed to work with data frames and supports various customization options.

Installation

You can install the development version of tsg from GitHub with:

# install.packages("pak")
pak::pak("yng-me/tsg")

Copy Link

Version

Install

install.packages('tsg')

Monthly Downloads

235

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Bhas Abdulsamad

Last Published

November 9th, 2025

Functions in tsg (0.1.0)

write_xlsx

Write Data to Excel with Titles, Notes, and Styling
generate_frequency

Generate frequency table
rename_label

Rename data labels
generate_output

Generate output in specified format (e.g., xlsx, html, pdf, word)
remove_label

Remove data labels
person_record

Sample dataset of persons
convert_factor

Convert labelled factors to regular factors
add_column_total

Add a column total
collapse_list

Collapse a list of data frames or tibbles into a single data frame
add_table_title

Add a title attribute to a table
add_facade

Add a facade to a tsg table
add_footnote

Add a footnote attribute to a table
add_row_total

Add a row total
add_source_note

Add a source note attribute to a table
generate_crosstab

Generate cross-tabulation
remove_labels

Remove all labels
generate_template

Generate a template
add_table_subtitle

Add a subtitle attribute to a table
get_tsg_facade

Get a facade from the package or a file