rowDataToDF: Extract the 'rowData' of a 'QFeatures' object to a...

Description Usage Arguments Details Value Examples

View source: R/utils.R

Description

The methods takes the rowData of one or more given assay in a QFeatures object and combines the data in a single DataFrame.

Usage

1
rowDataToDF(obj, i, vars)

Arguments

obj

A QFeatures object

i

A numeric() or character() vector indicating from which assays the rowData should be taken.

vars

A character() vector indicating which variables from the rowData should be extracted.

Details

Along with the reuired rowData an additional .assay variable is created and holds the assay name from which the metadata was taken.

Value

A DataFrame object with the rowData row-binded over the required assays.

Examples

1
2
3
## Extract the peptide length and sequence from the first 3 assays
data("scp1")
rowDataToDF(scp1, i = 1:3, c("Length", "Sequence"))

scp documentation built on Nov. 8, 2020, 8:20 p.m.