GRgetGroupVars: Grouping Variables

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/GRgetGroupVars.R

Description

Given a SummarizedExperiment object created by GRfit, this function returns a vector of the grouping variables used to create the object.

Usage

1
GRgetGroupVars(fitData)

Arguments

fitData

a SummarizedExperiment object, generated by the GRfit function.

Details

Given a SummarizedExperiment object created by GRfit, this function returns a vector of the grouping variables used to create the object. These are the variables in the dataset that are not averaged over. This is simply a convenient accessor function, equivalent to metadata(fitData)[[2]].

Value

A vector of grouping variables

Author(s)

Nicholas Clark

See Also

To create the object needed for this function, see GRfit.

Examples

1
2
3
4
5
6
7
8
# Load Case A (example 1) input
data("inputCaseA")
head(inputCaseA)
# Run GRfit function with case = "A"
output1 = GRfit(inputData = inputCaseA,
groupingVariables = c('cell_line','treatment'))
groupVars = GRgetGroupVars(output1)
groupVars

uc-bd2k/GRmetrics documentation built on Nov. 11, 2020, 4:10 p.m.