reform_tidy_omic: Reform Tidy Omic

reform_tidy_omicR Documentation

Reform Tidy Omic

Description

This function recreates a 'tidy_omic' object from the "data" and "design" attributes of this object.

Usage

reform_tidy_omic(tidy_data, tomic_design)

Arguments

tidy_data

A tibble containing measurements along with sample metadata. This table can be obtained as the "data" attribute from a romic "tidy_omic" object.

tomic_design

a list with named attributes describing feature, sample, and measurement variables.

Details

This is handy for passing data and metadata through approaches like parsnip which expect data to be formatted as a data.frame

Examples

tidy_data <- romic::brauer_2008_tidy$data
reform_tidy_omic(tidy_data, romic::brauer_2008_tidy$design)


calico/romic documentation built on Sept. 27, 2024, 7:16 p.m.