cluster_text: Clusters the vectors using 2-stage clustering algorithm

Description Usage Arguments Details

View source: R/clustRcompaR_background.R

Description

Clusters the vectors using 2-stage clustering algorithm

Usage

1
cluster_text(mat, dev_mat, n_clusters, cleanDFM, num_terms)

Arguments

mat

The clean dfm as a matrix and transposed, from deviationalize

dev_mat

The deviation matrix of the dfm, from deviationalize

n_clusters

number of desired clusters

cleanDFM

DFM object from clean_dfm function

num_terms

Minimum number of terms per document

Details

Applies 2 stage clustering algorithm, using Ward's method for hierarchical agglomerative clustering to set the centers for the specified number of clusters. K-means algorithm uses these centers as a starting point and fits its model. @export


clustRcompaR documentation built on May 1, 2019, 11:16 p.m.