Category: Sample Code – R

  • Natural Language Processing (NLP) and Latent Dirichlet Analysis (LDA) of Tweets (Example)

    Natural Language Processing (NLP) and Latent Dirichlet Analysis (LDA) of Tweets (Example)

    attach packages library(devtools) ## Loading required package: usethis library(textclean) library(textdata) library(tidyverse) ## ── Attaching packages ────────────────────────────────────────────────────── tidyverse 1.3.1 ── ## ✓ ggplot2 3.3.5.9000 ✓ purrr 0.3.4 ## ✓ tibble 3.1.5 ✓ dplyr 1.0.7 ## ✓ tidyr 1.1.4 ✓ stringr 1.4.0.9000 ## ✓ readr 2.0.2 ✓ forcats 0.5.1 ## ── Conflicts ───────────────────────────────────────────────────────── tidyverse_conflicts() ── ## x […]