knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-" )
Toolbox to manipulate and analyze texts.
The lexR package gathers several functions to prepare texts for subsequent analyses (cleaning, semantic analysis, bags of words) and to facilitate topic modeling.
Before you can install lexR itself, you will need to install from CRAN the following packages:
install.packages(c("dplyr", "tidyr", "stringr", "purrr", "stm", "tibble", "tidytext", "stats", "textclean", "stringi", "tm", "utils", "clipr", "koRpus.lang.en", "koRpus", "tidygraph", "rhandsontable", "udpipe", "shiny", "miniUI", "knitr"), dependencies = TRUE)
Then, install lexR from its GitHub public repository:
devtools::install.github("NicolasJBM/lexR")
A first set of functions support the preparation of text for subsequent analyses. See the vignette "Preparing Textual Data for Analysis" for more detail about these functions and the related work flow.
A second set of functions leverages several functions from other packages for text analysis itself. For more details about this set, see the vignette "Analyzing Textual Data".
Finally, the packages also includes a function to count words in a string or in the clipboard, count_words(), and a small gadget to test what a regex pattern captures, test_regex().
LexR is necessary to run bibliogR which uses the cleaning functions. The package buildR inclides some function helping with the analysis of synctatic network produced by the create_syntrel() and create_syntnet() functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.