Generate a source data frame from a sample data frame
Source:R/infer_source_data.R
infer_source_data.Rd
There may be situations where you have a verbose sample data frame that has all of the data for both the samples and the source materials. This function attempts to infer a source data frame from the sample data frame. It does this by grouping by the source matrix ID and then checking to see if all of the values in each column are the same.If they are, then that column is kept in the source data frame. If not, then that column is dropped.