inspect_text: Inspect Text Vectors

Description Usage Arguments Value Examples

View source: R/inspect_text.R

Description

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

Usage

1
2
3
4
5
6
7
inspect_text(text.var, grouping.var = NULL, ...)

## Default S3 method:
inspect_text(text.var, grouping.var = NULL, ...)

## S3 method for class 'Corpus'
inspect_text(text.var, ...)

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.

Value

Returns a named list (prints pretty).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

## End(Not run)

trinker/qdap documentation built on Sept. 30, 2020, 6:28 p.m.