formatResults: Function to format results for saving.

View source: R/helperFunctions.R

formatResultsR Documentation

Function to format results for saving.

Description

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

Usage

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

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

rhondabacher/Trendy documentation built on Oct. 26, 2023, 3:46 a.m.