Skip to contents

This function takes in a single row of a solutions matrix and returns a vector containing the cluster assignments for each observation. It is similar to get_cluster_df(), which takes a solutions matrix with only one row and returns a dataframe with two columns: "cluster" and "subjectkey" '(the UID of the observation) and get_cluster_solutions(), which takes a solutions matrix with any number of rows and returns a dataframe indicating the cluster assignments for each of those rows.

Usage

get_clusters(solutions_matrix_row)

Arguments

solutions_matrix_row

Output matrix row

Value

clusters list of assigned clusters