View source: R/g3_fit_combine.R
bind_fit_components | R Documentation |
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
bind_fit_components(fit_list, component)
fit_list |
A list of multiple gadget.fit objects. |
component |
A string specifying which list element to extract (ie, see names(fit)) |
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'
A data frame that contains an 'id' column
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.