Parses filenames in a dataframe to get the fraction number.

add_fraction(df, filename_colname = filename)

Arguments

df

A data frame containing a column corresponding to MS data file names.

filename_colname

The name of the column containing the data file names.

Value

A data frame containing a new column corresponding to fraction names.