formatResults: Function to format results for saving.

Description Usage Arguments Value Author(s) Examples

View source: R/helperFunctions.R

Description

format data from Trendy which can be saved for later use.

Usage

1
formatResults(topTrendyData, featureNames = NULL)

Arguments

topTrendyData

results from topTrendy() function

featureNames

an optional vector of features (if only interested in outputting a subset of features/genes).

Value

The function will reformat the output from Trendy so that it can be easily save as a .txt or .csv file. If featureNames is supplied then only the information for those features/genes is returned.

Author(s)

Rhonda Bacher

Examples

1
2
3
4
5
data(trendyExampleData)
 myTrends <- trendy(Data=trendyExampleData[seq_len(2),])
 myTrends <- results(myTrends)
 topTrendyRes <- topTrendy(myTrends)
 resToSave <- formatResults(topTrendyRes)

Trendy documentation built on Nov. 8, 2020, 8:10 p.m.