dot-flatten_group_to_df: .flatten_group_to_df

.flatten_group_to_dfR Documentation

.flatten_group_to_df

Description

This function takes a matrix with an attribute "gr" representing group sizes and flattens it into a data frame, adding a 'gr' column to indicate the group each row belongs to.

Usage

.flatten_group_to_df(x)

Arguments

x

A matrix containing the data to be flattened. The matrix should have an attribute "gr" that contains the size for each group.

Value

A data frame containing the flattened data with an additional 'gr' column indicating the group each row belongs to.


valueSetCompare documentation built on June 22, 2024, 6:57 p.m.