dhmeasures: Digital History Measures

Provides statistical functions to aid in the analysis of contemporary and historical corpora. These transparent functions may be useful to anyone, and were designed with the social sciences and humanities in mind. JSD (Jensen-Shannon Divergence) is a measure of the distance between two probability distributions. The JSD and Original JSD functions expand on existing functions, by calculating the JSD for distributions of words in text groups for all pairwise groups provided (Drost (2018) <doi:10.21105/joss.00765>). The Log Likelihood function is inspired by the work of digital historian Jo Guldi (Guldi (2022) <https://github.com/joguldi/digital-history>). Also includes helper functions that can count word frequency in each text grouping, and remove stop words.

Version: 1.0
Depends: R (≥ 3.5.0)
Imports: Rcpp (≥ 1.0.9), dplyr, tidytext
LinkingTo: Rcpp
Published: 2026-03-23
DOI: 10.32614/CRAN.package.dhmeasures (may not be active yet)
Author: Ryan Schaefer ORCID iD [aut], Steph Buongiorno ORCID iD [aut, cre]
Maintainer: Steph Buongiorno <steph.buon at gmail.com>
BugReports: https://github.com/stephbuon/dhmeasures/issues
License: MIT + file LICENSE
URL: https://github.com/stephbuon/dhmeasures
NeedsCompilation: yes
CRAN checks: dhmeasures results

Documentation:

Reference manual: dhmeasures.html , dhmeasures.pdf

Downloads:

Package source: dhmeasures_1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): dhmeasures_1.0.tgz, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=dhmeasures to link to this page.