View source: R/edata_summary.R
edata_summary | R Documentation |
This function takes in an omicsData object and returns a summary of the e_data component. The six summarizing metrics include the mean, standard deviation, median, percent observed, minimum, and maximum.
edata_summary(omicsData, by = "sample", groupvar = NULL)
omicsData |
object of the class 'lipidData', 'metabData', 'pepData',
'proData', or 'nmrData' created by |
by |
character string indicating whether summarizing metrics will be applied by 'sample' or by 'molecule'. Defaults to 'sample'. |
groupvar |
a character vector with no more than two variable names that
should be used to determine group membership of samples. The variable name
must match a column name from |
If groupvar is NULL and group_designation has not been applied to
omicsData, then the metrics will be applied to each column of e_data (when
by = 'sample) or to each row of e_data (when by = 'molecule'). When
groupvar is provided, it must match a column name from f_data
, this
column of f_data is used to group e_data in order to apply the metrics.
A list of six data frames, of class 'dataRes' (data Result), which are the results of applying the metrics (mean, standard deviation, median, percent observed, minimum and maximum) to omicsData$e_data.
library(pmartRdata)
mylipid <- edata_transform(omicsData = lipid_pos_object, data_scale = "log2")
mylipid <- group_designation(omicsData = mylipid, main_effects = "Virus")
result <- edata_summary(omicsData = mylipid, by = "sample", groupvar = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.