Understand the tidy text format
mainThe tidytext package follows tidy data principles where text data is structured such that:
- Each variable is a column.
- Each observation is a row.
- Each type of observational unit is a table.
Specifically, the tidy text format is defined as being one-token-per-document-per-row. This structure allows you to use standard tidy tools like dplyr, ggplot2, and broom for text mining and natural language processing tasks.