get_clusters: Extract cluster membership vector from one solutions data...

View source: R/deprecated.R

get_clustersR Documentation

Extract cluster membership vector from one solutions data frame row

Description

[Deprecated] 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.

Usage

get_clusters(sol_df_row)

Arguments

sol_df_row

Output matrix row.

Value

clusters Vector of assigned clusters.


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