iso_rename_file_info: Rename file info columns

Description Usage Arguments See Also

View source: R/file_info_operations.R

Description

Rename file info columns (iso_get_file_info) within isofile objects. Works just like dplyr's rename. You can also use rename directly but it will not provide summary information on the operation. To select specific columns to keep (discarding all others), use iso_select_file_info instead. Set file_specific = TRUE to rename 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.

Usage

1
2
3
4
5
6
iso_rename_file_info(
  iso_files,
  ...,
  file_specific = FALSE,
  quiet = default(quiet)
)

Arguments

iso_files

collection of iso_file objects

...

dplyr-style rename conditions applied based on each file's file_info (see iso_get_file_info)

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

See Also

Other file_info operations: iso_add_file_info.iso_file_list(), iso_filter_files(), iso_mutate_file_info(), iso_parse_file_info(), iso_select_file_info(), iso_set_file_root()


isoreader documentation built on Nov. 19, 2021, 1:07 a.m.