Commit e2d31c35 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

DOC: readme

parent 855c17d7
``ukbparse`` - the UK BioBank data parser
``ukbparse`` - the FMRIB UK BioBank data parser
.. image::
......@@ -180,6 +180,24 @@ interested in numeric columns, you can retrieve them as an array like this::
data = data(:, vartype('numeric')).Variables;
The ``readtable`` function will potentially rename the column names to ensure
that they are are valid MATLAB identifiers. You can retrieve the original
names from the ``table`` object like so::
colnames = regexp(data.Properties.VariableDescriptions,
'''(.+)''', 'tokens', 'once');
colnames = vertcat(colnames{:});
If you have used the ``--description_file`` option, you can load in the
descriptions for each column as follows::
descs = readtable('descriptions.tsv',
'FileType', 'text',
descs = descs.Var2;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment