.flatten_group_to_df {valueSetCompare} | R 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.
[Package valueSetCompare version 1.0.0 Index]