Summarizing topics
Let's explore some of the implied features of the LDA output using some grouped summaries.
This exercise is part of the course
Introduction to Text Analysis in R
Exercise instructions
- Produce a grouped summary of the LDA output by topic.
- Calculate the sum of the word probabilities.
- Count the number of terms.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Produce a grouped summary of the LDA output by topic
lda_topics %>%
___(___) %>%
summarize(
# Calculate the sum of the word probabilities
sum = ___(___),
# Count the number of terms
n = ___()
)