Frequency Distribution Tables, Histograms and Polygons

Perform frequency distribution tables, associated histograms and polygons from vector, data.frame and matrix objects for numerical and categorical variables.


fdth

fdth is an R package for frequency distribution tables, associated histograms, and polygons for numerical and categorical variables.

CRAN status CRAN downloads CRAN checks Lifecycle: stable License: GPL-2

Key Features

  • Frequency distribution tables from vectors, matrices, and data frames.
  • Support for numerical (fdt) and categorical (fdt_cat) variables.
  • Associated graphics, including histograms and frequency polygons.
  • Summary measures from grouped data (for example, mean, median, and mode).
  • Reporting support with xtable.

Installation

Install from CRAN:

install.packages("fdth")

Install the development version from GitHub:

# install.packages("remotes")
remotes::install_github("jcfaria/fdth")

Quick Start

library(fdth)

set.seed(123)
x <- rnorm(100, mean = 20, sd = 3)

ft <- fdt(x)
ft

plot(ft)
summary(ft)

# Most frequent value (mode) from grouped data
mfv(ft)

Project Layout

  • /R: Core functions and S3 methods.
  • /man: Reference documentation (.Rd files).
  • /tests: Automated tests (testthat).
  • /vignettes: Tutorials and longer-form documentation.

Contributing

Contributions are welcome. Open an issue or submit a pull request with:

  • Bug fixes and performance improvements.
  • Documentation and usability updates.
  • New ideas for tables, summaries, and visual workflows.

To check and build locally:

R CMD check fdth
R CMD build fdth
R CMD INSTALL fdth_X.X-X.tar.gz

Roadmap

  • Expand automated tests for edge cases.
  • Improve examples for multimodal and grouped-data scenarios.
  • Keep documentation aligned with current S3 behavior.

Developed by:
Faria, J. C.; Allaman, I. B.; Jelihovschi, E. G.
Universidade Estadual de Santa Cruz - UESC
Departamento de Ciencias Exatas - DCEX
Ilheus - Bahia - Brasil

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("fdth")

1.5-0 by J. C. Faria, 5 months ago


https://github.com/jcfaria/fdth


Browse source code at https://github.com/cran/fdth


Authors: J. C. Faria [aut, cre] , I. B. Allaman [aut] , E. G. Jelihovschi [aut]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports xtable

Suggests knitr, rmarkdown, testthat


See at CRAN