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, vendor_data_table) 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,
vendor_data_table = NULL,
by = c("uidx", "analysis", "config", "species", "channel", "mass")
)
ir_get_metadata(aggregated_data, metadata = everything())
ir_get_resistors(
aggregated_data,
metadata = c("file_name"),
by = c("uidx", "analysis")
)
ir_get_traces(
aggregated_data,
metadata = c("file_name"),
by = c("uidx", "analysis")
)
ir_get_cycles(
aggregated_data,
metadata = c("file_name"),
by = c("uidx", "analysis")
)
ir_get_scans(
aggregated_data,
metadata = c("file_name"),
by = c("uidx", "config")
)
ir_get_vendor_data_table(
aggregated_data,
metadata = c("file_name"),
by = c("uidx", "analysis")
)Arguments
- aggregated_data
datasets aggregated from
ir_aggregate_isofiles()- metadata
columns to get from the aggregated
metadata, alldplyr::select()syntax is supported- traces
columns to get from the aggregated
traces, alldplyr::select()syntax is supported- cycles
columns to get from the aggregated
cycles, alldplyr::select()syntax is supported- scans
columns to get from the aggregated
scans, alldplyr::select()syntax is supported- resistors
columns to get from the aggregated
resistors, alldplyr::select()syntax is supported- vendor_data_table
columns to get from the aggregated
vendor_data_table, alldplyr::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)
Functions
ir_get_metadata(): shortcut for retrieving allmetadatacolumns (i.e.metadata = dplyr::everything())ir_get_resistors(): shortcut for retrieving allresistorscolumns (i.e.resistors = dplyr::everything()), keyed by the selectedmetadatair_get_traces(): shortcut for retrieving alltracescolumns (i.e.traces = dplyr::everything()), keyed by the selectedmetadatair_get_cycles(): shortcut for retrieving allcyclescolumns (i.e.cycles = dplyr::everything()), keyed by the selectedmetadatair_get_scans(): shortcut for retrieving allscanscolumns (i.e.scans = dplyr::everything()), keyed by the selectedmetadatair_get_vendor_data_table(): shortcut for retrieving allvendor_data_tablecolumns (i.e.vendor_data_table = dplyr::everything()), keyed by the selectedmetadata. Only available when aggregated with the"extended"aggregator.
