Find Minimal Grouping Columns for Strata Reconstruction
Source:R/PKNCA.R
select_minimal_grouping_cols.Rd
This function identifies the smallest set of columns in a data frame whose unique combinations can reconstruct the grouping structure defined by the specified strata columns. It removes duplicate, constant, and redundant columns, then searches for the minimal combination that uniquely identifies each stratum.