get_clusters | R Documentation |
Deprecated function for building extracting cluster solutions from a
solutions data frame. Please use
t()
instead.
This function takes in a single row of a solutions data frame and returns a
vector containing the cluster assignments for each observation. It is
similar to get_cluster_df()
, which takes a solutions data frame with only one
row and returns a data frame with two columns: "cluster" and "uid"
'(the UID of the observation) and get_cluster_solutions()
, which takes a
solutions data frame with any number of rows and returns a data frame indicating
the cluster assignments for each of those rows.
get_clusters(sol_df_row)
sol_df_row |
Output matrix row. |
clusters Vector of assigned clusters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.