This is a convenience function to convert the units of multiple peak table columns that are of type iso_double_with_units
with the same units to a different SI prefix, e.g. from mVs
to Vs
. Uses iso_scale_double_with_units
internally.
iso_convert_peak_table_units(...) # S3 method for iso_file_list iso_convert_peak_table_units( iso_files, ..., select = everything(), quiet = default(quiet) ) # S3 method for data.frame iso_convert_peak_table_units( peak_table, ..., select = everything(), quiet = default(quiet) )
... | which units to convert. Must be named character arguments - the values are the old units, the names are the new units. Each pair of old and new units must have the same base units and only differ in their SI prefix (e.g. |
---|---|
iso_files | collection of continuous flow iso_file objects |
select | which columns to consider when converting units. Supports all select syntax. Columns not matching |
quiet | whether to display (quiet=FALSE) or silence (quiet = TRUE) information messages. |
peak_table | a peak table data frame |
At this time, this function cannot convert between different units yet (e.g. voltage and current), but this could be implemented using resistors values already available in the iso_files
akin to the implementation in iso_convert_signals for raw data.