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:
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
- hansard_1870_example - The 19th-century British Parliamentary debates for the decade 1820
- stop_word - Stop Words List
Last updated from:c47c570f26. Checks:13 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 133 | ||
| linux-devel-x86_64 | OK | 174 | ||
| source / vignettes | OK | 157 | ||
| linux-release-arm64 | OK | 187 | ||
| linux-release-x86_64 | OK | 139 | ||
| macos-release-arm64 | OK | 173 | ||
| macos-release-x86_64 | OK | 252 | ||
| macos-oldrel-arm64 | OK | 197 | ||
| macos-oldrel-x86_64 | OK | 250 | ||
| windows-devel | OK | 125 | ||
| windows-release | OK | 114 | ||
| windows-oldrel | OK | 126 | ||
| wasm-release | OK | 106 |
Exports:count_tokensjsdlog_likelihoodoriginal_jsdremove_stop_words
Dependencies:clidplyrgenericsgluejaneaustenrlatticelifecyclemagrittrMatrixpillarpkgconfigpurrrR6RcpprlangSnowballCstringistringrtibbletidyselecttidytexttokenizersutf8vctrswithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Count Tokens | count_tokens |
| Digital History Measures | dhmeasures |
| The 19th-century British Parliamentary debates for the decade 1820 | hansard_1870_example |
| JSD | jsd |
| Log Likelihood | log_likelihood |
| Original JSD | original_jsd |
| Remove Stop Words | remove_stop_words |
| Stop Words List | stop_word |
