Package: dhmeasures 1.0

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.

Authors:Ryan Schaefer [aut], Steph Buongiorno [aut, cre]

dhmeasures_1.0.tar.gz
dhmeasures_1.0.zip(r-4.7)dhmeasures_1.0.zip(r-4.6)dhmeasures_1.0.zip(r-4.5)
dhmeasures_1.0.tgz(r-4.6-x86_64)dhmeasures_1.0.tgz(r-4.6-arm64)dhmeasures_1.0.tgz(r-4.5-x86_64)dhmeasures_1.0.tgz(r-4.5-arm64)
dhmeasures_1.0.tar.gz(r-4.7-arm64)dhmeasures_1.0.tar.gz(r-4.7-x86_64)dhmeasures_1.0.tar.gz(r-4.6-arm64)dhmeasures_1.0.tar.gz(r-4.6-x86_64)
dhmeasures_1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION
card.svg |card.png
dhmeasures/json (API)

# Install 'dhmeasures' in R:
install.packages('dhmeasures', repos = c('https://stephbuon.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/stephbuon/dhmeasures/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

cpp

2.30 score 9 scripts 445 downloads 5 exports 25 dependencies

Last updated from:c47c570f26. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK133
linux-devel-x86_64OK174
source / vignettesOK157
linux-release-arm64OK187
linux-release-x86_64OK139
macos-release-arm64OK173
macos-release-x86_64OK252
macos-oldrel-arm64OK197
macos-oldrel-x86_64OK250
windows-develOK125
windows-releaseOK114
windows-oldrelOK126
wasm-releaseOK106

Exports:count_tokensjsdlog_likelihoodoriginal_jsdremove_stop_words

Dependencies:clidplyrgenericsgluejaneaustenrlatticelifecyclemagrittrMatrixpillarpkgconfigpurrrR6RcpprlangSnowballCstringistringrtibbletidyselecttidytexttokenizersutf8vctrswithr