R/StatisticsForPREDA2dataframe.R

##
## Method StatisticsForPREDA2dataframe to extract annotations as a dataframe with probeids as rownames
##

##
## StatisticsForPREDA - StatisticsForPREDA2dataframe
##

setMethod("StatisticsForPREDA2dataframe", "StatisticsForPREDA", function(.Object) {
output_dataframe<-data.frame("ids"=slot(.Object, "ids"), slot(.Object, "statistic"), stringsAsFactors=FALSE)
colnames(output_dataframe)<-c("ids", slot(.Object, "analysesNames"))
rownames(output_dataframe)<-output_dataframe[,"ids"]
return(output_dataframe)
})

Try the PREDA package in your browser

Any scripts or data that you put into this service are public.

PREDA documentation built on Nov. 8, 2020, 7:40 p.m.