Calculate ratios from raw data. Note that these are raw ratios and are not normalized against any standards yet. The ratios are calculated straight from the raw data without any unit conversions, i.e. if the raw data is in mV, the ratio is mV/mV, if in nA the ratio is nA/nA, etc. These raw ratios are subsequently NOT identical to absolute ratios, in fact they are usually not even close (especially if raw data recorded as voltages with different resistors). If raw data is first converted to identical current units (iso_convert_signals), the ratios may be close to their true values (+instrument fractionation), however, isotope ratios should always be calibrated against reference ratios measured in the same data file.


# S3 method for iso_file_list
iso_calculate_ratios(iso_files, ratios, quiet = default(quiet))

# S3 method for data.frame
iso_calculate_ratios(df, ratios, quiet = default(quiet))



S3 method placeholder parameters, see class specific functions for details on parameters


collection of iso_file objects


which ratios to calculate (e.g. c("45/44", "46/44"))


whether to display (quiet=FALSE) or silence (quiet = TRUE) information messages.


a data frame of raw continuous flow or dual inlet data, must have at minimum the columns 'file_id' and the referenced mass columns required to calculate the ratios. Assumes that mass columns have either 'v' (for voltages) or 'i' (for currents) as the column name prefix and a ".<unit>" suffix, but otherwise makes no safety checks and will let you calculate any two ratios.


the passed in iso_file(s) with ratios added