getPlotOmicsData {caOmicsV} | R Documentation

## Extract Subset from A Data Frame

### Description

Extract a subset from the input data for a set of samples and genes

### Usage

        getPlotOmicsData(omicsData, sampleNames, geneNames)

### Arguments

`omicsData` | a data frame with all samples and all genes
`sampleNames` | character vector, names of samples to be extracted from dataset.
`geneNames` | character vector, names of genes to be extracted from dataset.

### Value

A data frame with subset of input data

### Author(s)

Henry Zhang

### Examples

        data(RNASeq)
        data(RNASeqDemoData)
        geneNames  <- as.character(RNASeqDemoData[,1])
        sampleNames <- colnames(RNASeqDemoData)[-1]
        plotData <- getPlotOmicsData(RNASeq, sampleNames, geneNames)

[Package caOmicsV version 1.20.0 Index]