README.md

tsg

CRAN
status R-CMD-check

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

install.packages("tsg")

Basic usage

library(tsg)

generate_frequency(person_record, sex)

generate_crosstab(person_record, marital_status, sex)

person_record |> 
  generate_crosstab(marital_status, sex) |> 
  generate_output(
    path = "crosstab.xlsx",
    format = "xlsx"
  )

More examples here.



Try the tsg package in your browser

Any scripts or data that you put into this service are public.

tsg documentation built on Feb. 22, 2026, 5:08 p.m.