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-x86_64)dhmeasures_1.0.zip(r-4.7-arm64)dhmeasures_1.0.zip(r-4.6-x86_64)dhmeasures_1.0.zip(r-4.6-arm64)dhmeasures_1.0.zip(r-4.5-x86_64)
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.34 score 11 scripts 306 downloads 5 exports 25 dependencies

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

TargetResultTimeFilesSyslog
linux-devel-arm64OK104
linux-devel-x86_64OK184
source / vignettesOK208
linux-release-arm64OK141
linux-release-x86_64OK130
macos-release-arm64OK152
macos-release-x86_64OK333
macos-oldrel-arm64OK171
macos-oldrel-x86_64OK295
windows-devel-arm64OK363
windows-devel-x86_64OK152
windows-release-arm64OK370
windows-release-x86_64OK132
windows-oldrel-x86_64OK116
wasm-releaseOK95

Exports:count_tokensjsdlog_likelihoodoriginal_jsdremove_stop_words

Dependencies:clidplyrgenericsgluejaneaustenrlatticelifecyclemagrittrMatrixpillarpkgconfigpurrrR6RcpprlangSnowballCstringistringrtibbletidyselecttidytexttokenizersutf8vctrswithr