This function transforms a metadata data frame from a wide format to a long format. The goal is to consolidate spanning variables into a single column, making the table easier to handle regardless of the number of spanning variables described.
Value
A data frame in long format. The resulting data frame contains two columns:
spanning
: The consolidated values of the spanning variables.Any additional columns retained from the original data frame. Rows where the names of "spanning" and "hrc_spanning" do not match, or where
spanning
values are NA, are filtered out.