Select which file info columns (iso_get_file_info) to keep within isofile objects. Works just like dplyr's select and can rename columns on-the-fly. You can also use select directly but it will not provide summary information on the operation. To rename columns without removing all other information, use iso_rename_file_info instead. Set file_specific = TRUE to select different columns in different iso_files depending on what exists in each file. This is very useful when working with data from multiple instruments that may have the same information (e.g. sample name) stored in different columns.

iso_select_file_info(
  iso_files,
  ...,
  file_specific = FALSE,
  quiet = default(quiet)
)

Arguments

iso_files

collection of iso_file objects

...

dplyr-style select conditions applied based on each file's file_info (see iso_get_file_info). Note that the file_id column will always be kept, no matter the selection criteria, and cannot be renamed to protect from unexpected behavior.

file_specific

whether to run the select criteria (...) specifically within each individual file rather than on all files jointly. This is a lot slower but makes it possible to select different columns in different iso_files depending on what exists in each file and is mostly of use when working with data from multiple instruments.

quiet

whether to display (quiet=FALSE) or silence (quiet = TRUE) information messages. Set parameter to overwrite global defaults for this function or set global defaults with calls to iso_turn_info_messages_on and iso_turn_info_messages_off