GroupSummary: Summary of the groups

Description Usage Arguments Value Author(s) Examples

View source: R/GroupSummary.R

Description

Computes the mean, standard deviation, and coefficient of variation for each group in a data matrix.

Usage

1
GroupSummary(inputdata)

Arguments

inputdata

A data frame in the input data format. See metabolomics for details.

Value

A list containing:

means

A matrix of means for each group.

std

A matrix of standard deviation for each group.

cv

A matrix of coefficient of variation for each group.

Author(s)

Alysha M De Livera, Jairus B Bowne

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
    data(treated)
    treated.log <- LogTransform(treated)$output

    #Means of each metabolite in each group
    GroupSummary(treated.log)$means

    #Standard deviation of each metabolite in each group    
    GroupSummary(treated.log)$std
    
    #Coefficient of variation of each metabolite in each group
    GroupSummary(treated.log)$cv

metabolomics documentation built on May 29, 2017, 3:32 p.m.