Learn R Programming

NormalizeMets (version 0.25)

ToInputdata: Convert to Inputdata

Description

Returns an inputdata type data frame by combining group information from groupdata with metabolites information from featuredata

Usage

ToInputdata(featuredata, groupdata)

Arguments

featuredata

featuredata A data frame in the featuredata format. This is a dataframe with metabolites in columns and samples in rows. Unique sample names should be provided as row names. See NormalizeMets Vignette for details.

groupdata

A data frame or a vector with group names.

Value

inputdata

A data frame in the input data format. This has sample names in the first column, group names in the second column, and the metabolite variables in the remaining columns.