fdth is an R package for frequency distribution tables, associated histograms, and polygons for numerical and categorical variables.
- 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.
Install from CRAN:
install.packages("fdth")Install the development version from GitHub:
# install.packages("remotes")
remotes::install_github("jcfaria/fdth")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)/R: Core functions and S3 methods./man: Reference documentation (.Rdfiles)./tests: Automated tests (testthat)./vignettes: Tutorials and longer-form documentation.
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- 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