Skip to content

jcfaria/fdth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Frequency Distribution Tables, Histograms and Poligons - R Package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages