assign_cluster: Cluster Assignment of Documents/Text Elements

Description Usage Arguments Value Examples

Description

Cluster assignment of documents/text elements.

Usage

1
2
3
4
5
6
7
assign_cluster(x, ...)

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

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

Arguments

x

a kmeans_cluster object.

...

ignored.

Value

Returns an assign_cluster object; a named vector of cluster assignments with documents as names. The object also contains the original data_storage object.

Examples

1
2
3
4
5
6
library(dplyr)

x <- with(
    presidential_debates_2012,
    data_store(dialogue, paste(person, time, sep = "_"))
)

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