Description Usage Arguments Value
Some fields relate to each other e.g. self-reported medical
history where field 20002 contains the disclosed conditions and 20008 the
date of diagnosis. The date in array i
of 20008 corresponds to the
condition in array i
of 20002. visit_mult_array()
jointly
extracts such fields in a "long" format that is easier to work with than
"wide" as provided by UK Biobank (NOTE: watch for type coercion of
different data types).
1 | visit_mult_array(visit_data, fields)
|
visit_data |
Data frame/table with UK Biobank data. |
fields |
Vector of fields to extract e.g. |
Data table with eid
, reported
, and columns
corresponding to the fields
argument. reported
is the date
corresponding to the field instance e.g. the UK Biobank visit at which the
data was collected. Each row shows the data for an array.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.