getPlotSampleData: Extract Subset of Sample Information

Description Usage Arguments Value Author(s) Examples

View source: R/caOmicsV.R

Description

Extract required rows and columns from a sample dataset

Usage

1
    getPlotSampleData(sampleData, sampleNames)

Arguments

sampleData

Data frame with rows for samples and columns for features. Column 1 must be sample names.

sampleNames

character vector, names of samples to select.

Value

A data frame with subset of sample data and with the row order same as sampleNames.

Author(s)

Henry Zhang

Examples

1
2
3
    data(sampleDemoData)
    sampleNames <- as.character(sampleDemoData[10:40,1])
    sampleInfo <- getPlotSampleData(sampleDemoData, sampleNames) 

hzhanghenry/caOmicsV documentation built on May 17, 2019, 10:07 p.m.