sortClinicalData {caOmicsV} | R Documentation |
Sort sample information by a column defined by byItem (a column header). This function is for sorting sample information only.
sortClinicalData(clinicalData, byItem)
clinicalData |
A data frame with rows for samples and columns for features. Sample names must be in the first column. |
byItem |
character vector of a feature (column header) by which the data will be sorted. |
sampleData |
copy of the first argument with new row order. |
Henry Zhang
data(sampleDemoData) sampleInfo <- sortClinicalData(sampleDemoData, colnames(sampleDemoData)[1])