variableNames
Class: bioma.data.MetaData
Package: bioma.data
Retrieve or set variable names for samples in MetaData object
Syntax
VarNames
= variableNames(MDObj
)
VarNames
= variableNames(MDObj
, Subset
)
NewMDObj
= variableNames(MDObj
, Subset
, NewVarNames
)
Description
returns a cell array of character vectors specifying all variable names in a MetaData
object.VarNames
= variableNames(MDObj
)
returns
a cell array of character vectors specifying a subset the variable
names in a MetaData object. VarNames
= variableNames(MDObj
, Subset
)
replaces
the variable names specified by NewMDObj
= variableNames(MDObj
, Subset
, NewVarNames
)Subset
in MDObj
,
a MetaData object, with NewVarNames
, and
returns NewMDObj
, a new MetaData object.
Input Arguments
|
Object of the |
|
One of the following to specify a subset of the variable names in a MetaData object:
|
|
New variable names for specific sample or feature variable names within a MetaData object, specified by one of the following:
The number of variable names in |
Output Arguments
|
Cell array of character vectors specifying all variable names in a MetaData object. |
|
Object of the |
Examples
Construct a MetaData object, and then retrieve the sample variable names from it:
% Import bioma.data package to make constructor function % available import bioma.data.* % Construct MetaData object from .txt file MDObj2 = MetaData('File', 'mouseSampleData.txt', 'VarDescChar', '#'); % Retrieve the sample variable names VNames = variableNames(MDObj2)