bind_fit_components: Combine individual elements from multiple gadget.fit objects

View source: R/g3_fit_combine.R

bind_fit_componentsR Documentation

Combine individual elements from multiple gadget.fit objects

Description

This function extracts a specific element from multiple gadget.fit objects and combines them into a single dataframe. The output has an additional column 'id' that distinguishes each input gadget.fit object

Usage

bind_fit_components(fit_list, component)

Arguments

fit_list

A list of multiple gadget.fit objects.

component

A string specifying which list element to extract (ie, see names(fit))

Details

The 'id' column will be taken from names(fit_list). If fit_list has no names, the 'id' column will be taken from the positions, e.g., fit_list = list(a = fit1, b = fit2) will be produces id's of 'a' and 'b', whereas fit_list = list(fit1, fit2) will produce id's of '1' and '2'

Value

A data frame that contains an 'id' column


gadget-framework/gadgetutils documentation built on Nov. 11, 2024, 6:25 p.m.