gather_listoftbl: Gather List of Tibbles (or other dataframe-like type)

View source: R/gather_listoftbl.R

gather_listoftblR Documentation

Gather List of Tibbles (or other dataframe-like type)

Description

Names and index of the list are saved to specified columns.

Usage

gather_listoftbl(list_in, key = "key", index = "index", cores = 1)

Arguments

list_in

A named list of tibbles or another dataframe-like type. Must all have matching columns.

key

Name for the tbl column that original list names will end up in.

index

Name for the tbl column that original list indices will end up in.

cores

Number of cores to use for parallel ops on the input list. Only beneficial in huge tables (1E7s of rows.)

Examples

ions <- ions <- mzr %>%
   spectra() %>%
   setNames(., header(mzr)$retentionTime) %>%
   gather_listoftbl(., key = "rt", index = "scan")


octopode/tidychrom documentation built on Nov. 2, 2022, 1:32 a.m.