Skip to contents

Retrieve a specific subset of the aggregated data into a single data frame by specifying which columns to take from each dataset (metadata, traces, cycles, scans, resistors) using dplyr::select() syntax. If data from more than one dataset is selected (e.g. some columns from traces AND some from resistors), the datasets are combined with an dplyr::inner_join() using the columns listed in by (only the ones actually in the datasets). Joins that would lead to duplicated data entries (i.e. many-to-many joins) are not allowed and will throw an error to avoid unexpected replications of individual datapoints. If you really want to do such a join, you'll have to do it manually.

Usage

ir_get_data(
  aggregated_data,
  metadata = c("file_name"),
  traces = NULL,
  cycles = NULL,
  scans = NULL,
  resistors = NULL,
  by = c("uidx", "analysis", "config", "species", "channel", "mass")
)

Arguments

aggregated_data

datasets aggregated from ir_aggregate_isofiles()

metadata

columns to get from the aggregated metadata, all dplyr::select() syntax is supported

traces

columns to get from the aggregated traces, all dplyr::select() syntax is supported

cycles

columns to get from the aggregated cycles, all dplyr::select() syntax is supported

scans

columns to get from the aggregated scans, all dplyr::select() syntax is supported

resistors

columns to get from the aggregated resistors, all dplyr::select() syntax is supported

by

character vector of column names used as join keys when combining data from more than one dataset (default covers the standard linking columns; only keys actually present in both datasets are used)

Value

a tibble