Learn R Programming

IdMappingAnalysis (version 1.16.0)

as.data.frame.IdMapBase: Retrieves a data frame encapsulated within the given IdMapBase object

Description

Retrieves a data frame encapsulated within the given IdMapBase object. The method can be used as object specific as well as static. In the latter case the method can coerce to data.frame either IdMapBase or ExpressionSet derived object by using IdMapBase$as.data.frame(object) call signature.

Usage

"as.data.frame"(x, row.names=NULL, optional=FALSE, ...)

Arguments

row.names
Not used
optional
Not used
...
Not used

Value

A data.frame encapsulated within the given IdMapBase object or a data.frame to which another IdMapBase or ExpressionSet derived object is coerced.

See Also

For more information see IdMapBase.

Examples

Run this code
 obj<-IdMapBase(examples$msmsExperimentSet);
 DF<-as.data.frame(obj);
 DF[1:20,1:5];

 #convert ExpressionSet to data.frame
 exprSet<-new("ExpressionSet",
    exprs=matrix(runif(1000), nrow=100, ncol=10));
 DF<-IdMapBase$as.data.frame(exprSet);
 DF[1:10,1:5];
 

Run the code above in your browser using DataLab