This is an example of how to use knitr for producing a data dictionary on data stored in Opal.
The table StandingHeight is about "Participant".
It has 21 variables and 5113 entries.
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | text |
| Unit | |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Value |
|---|---|
| stage | StandingHeight |
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | datetime |
| Unit | |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Value |
|---|---|
| stage | StandingHeight |
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | datetime |
| Unit | |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Value |
|---|---|
| stage | StandingHeight |
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | text |
| Unit | |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Value |
|---|---|
| stage | StandingHeight |
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | text |
| Unit | |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Value |
|---|---|
| stage | StandingHeight |
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | text |
| Unit | |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Value |
|---|---|
| stage | StandingHeight |
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | text |
| Unit | |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Label | Missing |
|---|---|---|
| ASKED | FALSE | |
| OBSERVED | FALSE |
| Name | Value |
|---|---|
| stage | StandingHeight |
ASKED OBSERVED NA's
0 0 5113
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | decimal |
| Unit | cm |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Value |
|---|---|
| stage | StandingHeight |
| label | [en] Optional Stadiometre reading (3) |
| label | [fr] Lecture optionnelle du stadiomètre (3) |
| validation | [IntegrityCheck-ERROR[MALE[70.0 < x < 210.0], FEMALE[70.0 < x < 210.0]], IntegrityCheck-WARNING[MALE[148.0 < x < 192.0], FEMALE[148.0 < x < 192.0]]] |
| condition | Computing[1 > 2100.0] |
| captureMethod | MANUAL |
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
NA NA NA NaN NA NA 5113
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | text |
| Unit | |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Label | Missing |
|---|---|---|
| MANUAL | FALSE | |
| AUTOMATIC | FALSE | |
| COMPUTED | FALSE |
| Name | Value |
|---|---|
| stage | StandingHeight |
MANUAL AUTOMATIC COMPUTED NA's
0 0 1621 3492
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | decimal |
| Unit | |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Value |
|---|---|
| stage | StandingHeight |
| source | Computing[Abs[$1 - $2],[Instrument[StandingHeight, RES_FIRST_HEIGHT], Instrument[StandingHeight, RES_THIRD_HEIGHT]]] |
| captureMethod | COMPUTED |
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
143 162 168 169 175 201 3492
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | decimal |
| Unit | cm |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Value |
|---|---|
| stage | StandingHeight |
| label | [en] Optional Stadiometre reading (2) |
| label | [fr] Lecture optionnelle du stadiomètre (2) |
| validation | [IntegrityCheck-ERROR[MALE[70.0 < x < 210.0], FEMALE[70.0 < x < 210.0]], IntegrityCheck-WARNING[MALE[148.0 < x < 192.0], FEMALE[148.0 < x < 192.0]]] |
| condition | Computing[1 > 2100.0] |
| captureMethod | MANUAL |
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
161 169 178 178 187 196 5111
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | decimal |
| Unit | cm |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Value |
|---|---|
| stage | StandingHeight |
| label | [en] Stadiometre reading (1) |
| label | [fr] Lecture du stadiomètre (1) |
| validation | [IntegrityCheck-ERROR[MALE[70.0 < x < 210.0], FEMALE[70.0 < x < 210.0]], IntegrityCheck-WARNING[MALE[148.0 < x < 192.0], FEMALE[148.0 < x < 192.0]]] |
| captureMethod | MANUAL |
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
143 162 168 169 175 201 3492
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | text |
| Unit | |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Label | Missing |
|---|---|---|
| MANUAL | FALSE | |
| AUTOMATIC | FALSE | |
| COMPUTED | FALSE |
| Name | Value |
|---|---|
| stage | StandingHeight |
MANUAL AUTOMATIC COMPUTED NA's
1621 0 0 3492
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | text |
| Unit | |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Label | Missing |
|---|---|---|
| MANUAL | FALSE | |
| AUTOMATIC | FALSE | |
| COMPUTED | FALSE |
| Name | Value |
|---|---|
| stage | StandingHeight |
MANUAL AUTOMATIC COMPUTED NA's
0 0 1621 3492
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | text |
| Unit | |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Label | Missing |
|---|---|---|
| MANUAL | FALSE | |
| AUTOMATIC | FALSE | |
| COMPUTED | FALSE |
| Name | Value |
|---|---|
| stage | StandingHeight |
MANUAL AUTOMATIC COMPUTED NA's
1621 0 0 3492
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | text |
| Unit | |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Label | Missing |
|---|---|---|
| MANUAL | FALSE | |
| AUTOMATIC | FALSE | |
| COMPUTED | FALSE |
| Name | Value |
|---|---|
| stage | StandingHeight |
MANUAL AUTOMATIC COMPUTED NA's
0 0 1621 3492
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | decimal |
| Unit | |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Value |
|---|---|
| stage | StandingHeight |
| source | Computing[Abs[$1 - $2],[Instrument[StandingHeight, RES_SEC_HEIGHT], Instrument[StandingHeight, RES_THIRD_HEIGHT]]] |
| captureMethod | COMPUTED |
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
0 0 0 0 0 196 3492
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | text |
| Unit | |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Label | Missing |
|---|---|---|
| MANUAL | FALSE | |
| AUTOMATIC | FALSE | |
| COMPUTED | FALSE |
| Name | Value |
|---|---|
| stage | StandingHeight |
MANUAL AUTOMATIC COMPUTED NA's
0 0 1621 3492
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | decimal |
| Unit | |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Value |
|---|---|
| stage | StandingHeight |
| source | Computing[Abs[$1 - $2],[Instrument[StandingHeight, RES_FIRST_HEIGHT], Instrument[StandingHeight, RES_SEC_HEIGHT]]] |
| captureMethod | COMPUTED |
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
0 162 168 168 175 201 3492
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | decimal |
| Unit | |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Value |
|---|---|
| stage | StandingHeight |
| label | [en] Average Standing Height |
| label | [fr] Hauteur debout moyenne |
| source | Computing[If[ And[Equal[$2,0],Equal[$3,0]], $1, If[ Or[Equal[$2,0],Equal[$3,0]], If[ Equal[$2,0], Round[1, ($1 + $3)/2], Round[1, ($1 + $2)/2] ], If[ And[Less[$4, $5], Less[$4, $6]], Round[1, ($1 + $2)/2], If[ And[Less[$5, $4], Less[$5, $6]], Round[1,($1 + $3)/2], Round[1,($2 + $3)/2] ] ] ] ],[Instrument[StandingHeight, RES_FIRST_HEIGHT], Instrument[StandingHeight, RES_SEC_HEIGHT], Instrument[StandingHeight, RES_THIRD_HEIGHT], Instrument[StandingHeight, CALC_ABS_DIFF_FIRST_AND_SECOND_HEIGHT], Instrument[StandingHeight, CALC_ABS_DIFF_FIRST_AND_THIRD_HEIGHT], Instrument[StandingHeight, CALC_ABS_DIFF_SECOND_AND_THIRD_HEIGHT]]] |
| captureMethod | COMPUTED |
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
143 162 168 169 175 201 3492
| Property | Value |
|---|---|
| Entity type | Participant |
| Value type | text |
| Unit | |
| Mime Type | |
| Repeatable | FALSE |
| Occurrence Group |
| Name | Label | Missing |
|---|---|---|
| MANUAL | FALSE | |
| AUTOMATIC | FALSE | |
| COMPUTED | FALSE |
| Name | Value |
|---|---|
| stage | StandingHeight |
MANUAL AUTOMATIC COMPUTED NA's
1621 0 0 3492