proteomicspData {clippda} | R Documentation

## A function to extract a dataframe of phenotypic information from an object of aclinicalProteomicsData class

### Description

This function takes an object of `aclinicalProteomicsData` class, extracts a matrix of phenotypic data, and converts it to a dataframe with with variables having defined classes.

### Usage

    proteomicspData(Data, ...)

### Arguments

`Data` | is an object of `aclinicalProteomicsData` class.
`...` | means other defined arguments. Currently, we have not defined additional arguments.

### Value

Returns a dataframe with variables having defined classes.

### Author(s)

S Nyangoma

### Examples

    ########################################
    ##### the data
    ########################################

    data(liverdata)

    data(liver_pheno)

    OBJECT=new("aclinicalProteomicsData")

    OBJECT@rawSELDIdata=as.matrix(liverdata)
    OBJECT@covariates=c("tumor" ,    "sex")
    OBJECT@phenotypicData=as.matrix(liver_pheno)
    OBJECT@variableClass=c('numeric','factor','factor')
    OBJECT@no.peaks=53

    head(proteomicspData(OBJECT))

[Package clippda version 1.40.0 Index]