Extract cluster membership vector from one solutions data frame row
Source:R/deprecated.R
get_clusters.Rd
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.