get_text: Get a Text Stored in Various Objects

Description Usage Arguments Value Examples

Description

Extract the text supplied to the kmeans_cluster object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
get_text(x, ...)

## S3 method for class 'kmeans_cluster'
get_text(x, ...)

## Default S3 method:
get_text(x, ...)

## S3 method for class 'data_store'
get_text(x, ...)

## S3 method for class 'assign_cluster'
get_text(x, ...)

Arguments

x

A kmeans_cluster object.

...

ignored.

Value

Returns a vector or list of text strings.

Examples

1
2
3
4
5
6
7
8
library(dplyr)

presidential_debates_2012 %>%
    with(data_store(dialogue)) %>%
    kmeans_cluster(k=55) %>%
    assign_cluster() %>%
    get_text() %>%
    lapply(head)

trinker/kmeanstext documentation built on May 31, 2019, 8:51 p.m.