asdataframe: Turn a TopTags Object into a Dataframe

as.data.frameR Documentation

Turn a TopTags Object into a Dataframe

Description

Turn a TopTags object into a data.frame.

Usage

## S3 method for class 'TopTags'
as.data.frame(x, row.names = NULL, ...)

Arguments

x

an object of class TopTags

row.names

NULL or a character vector giving the row names for the data frame. Missing values are not allowed.

...

other arguments are not currently used.

Details

Convert edgeR objects into data.frames. This method returns the table component of a TopTags object. For DGEExact and DGELRT objects, the genes and table components are combined into a data.frame, similar to what is done by topTags but without sorting or p-value adjustment. For DGEList, the genes and counts components are combined into a data.frame.

Amongst other things, this functionality allows edgeR objects to be written to files using write.table or write.csv.

Value

A data.frame.

Author(s)

Gordon Smyth

See Also

as.data.frame in the base package.


OliverVoogd/edgeR documentation built on July 28, 2022, 10:13 p.m.