get_cluster_solutions: Extract cluster membership information from a sol_df

View source: R/deprecated.R

get_cluster_solutionsR Documentation

Extract cluster membership information from a sol_df

Description

[Deprecated] Deprecated function for building extracting cluster solutions from a solutions data frame. Please use t() instead.

This function takes in a solutions data frame and returns a data frame containing the cluster assignments for each uid. It is similar to 'get_clusters(), which takes one solutions data frame row and returns a vector of cluster assignments' and get_cluster_df(), which takes a solutions matrix with only one row and returns a data frame with two columns: "cluster" and "uid" (the UID of the observation).

Usage

get_cluster_solutions(sol_df)

Arguments

sol_df

A sol_df.

Value

A "data.frame" object where each row is an observation and each column (apart from the uid column) indicates the cluster that observation was assigned to for the corresponding solutions data frame row.


metasnf documentation built on April 3, 2025, 5:40 p.m.