qdap (version 2.4.6)

inspect_text: Inspect Text Vectors

Description

inspect_text - Inspect a text vector with adjustable string wrapping; created a pretty printed named list.

Usage

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, ...)

Value

Returns a named list (prints pretty).

Arguments

text.var

The text variable or a wfm object.

grouping.var

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.

Examples

Run this code
if (FALSE) {
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