inspect_text
- Inspect a text vector with adjustable string wrapping;
created a pretty printed named list.
inspect_text(text.var, grouping.var = NULL, ...)# S3 method for default
inspect_text(text.var, grouping.var = NULL, ...)
# S3 method for Corpus
inspect_text(text.var, ...)
The text variable or a wfm
object.
The grouping variables. Default NULL
generates
one word list for all text. Also takes a single grouping variable or a list
of 1 or more grouping variables.
ignored.
Returns a named list (prints pretty).
# NOT RUN {
with(raj, inspect_text(dialogue))
with(raj, inspect_text(dialogue, person))
with(raj, inspect_text(dialogue, list(paste("Act", act), person)))
## With a tm Corpus object
library(tm)
data(crude)
inspect_text(crude)
# }
Run the code above in your browser using DataLab