Skip to contents

This function takes in a single row of a solutions matrix and returns a dataframe containing the cluster assignments for each subjectkey. It is similar to get_clusters(), which takes one solutions matrix row and returns a vector of cluster assignments' 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_cluster_df(solutions_matrix_row)

Arguments

solutions_matrix_row

One row from a solutions matrix.

Value

cluster_df dataframe of cluster and subjectkey.