sm_kmeans: Create a data frame of Kmeans clusters

Description Usage Arguments Value

View source: R/text.R

Description

Create a data frame of Kmeans clusters

Usage

1
sm_kmeans(df, clusters = 3, item_name = "document")

Arguments

df

A data frame with a all numeric columns except the one containing the document ID

clusters

Integer. Number of clusters to identify.

item_name

Name of the column containing the item id.

Value

A data frame with a column indicating the cluster ID.


statsmaths/smodels documentation built on Jan. 9, 2021, 1:07 p.m.