...
Note | ||
---|---|---|
| ||
It is recommended that you familiarise yourself with R first by sitting our Introduction to R tutorial. It also requires that you have the DataSHIELD training environment installed on your machine, see our Installation Instructions for Linux, Windows, or Mac. |
Tip | ||
---|---|---|
| ||
DataSHIELD support is freely available in the DataSHIELD forum by the DataSHIELD community. Please use this as the first port of call for any problems you may be having, it is monitored closely for new threads. DataSHIELD bespoke user support and also user training classes are offered on a fee-paying basis. Please enquire at datashield@newcastle.ac.uk for current prices. |
...
Code Block | ||||
---|---|---|---|---|
| ||||
Aggregated (dimDS("DST")) [==============================================================] 100% / 0s $`dimensions of DDST in study1` [1] 2163 11 $`dimensions of DDST in study2` [1] 3088 11 $`dimensions of DDST in combined studies` [1] 5251 11 |
...
- Up to here, the dimensions of the assigned data frame
D
DST
have been found using theds.dim
command in whichtype='both'
is the default argument. - Now use the
type='combine'
argument in theds.dim
function to identify the number of individuals (5251) and variables (11) pooled across all studies:
Code Block | ||||
---|---|---|---|---|
| ||||
ds.dim(x='DDST', type='combine', datasources = connections) |
...
Code Block | ||
---|---|---|
| ||
Aggregated (dimDS("DST")) [==============================================================] 100% / 0s $`dimensions of DDST in combined studies` [1] 5251 11 |
...
Code Block | ||
---|---|---|
| ||
ds.colnames(x='DDST', datasources = connections) |
...
- Use the
ds.class
function to identify the class (type) of a variable - for example if it is an integer, character, factor etc. This will determine what analysis you can run using this variable class. The example below defines the class of the variableLAB_HDL
held in the assigned data frameD
, denoted by the argumentx='D$LABDST$LAB_HDL'
.
Code Block | ||
---|---|---|
| ||
ds.class(x='DST$LAB_HDL', datasources = connections) |
...
Code Block | ||
---|---|---|
| ||
ds.quantileMean(x='D$LABDST$LAB_HDL', datasources = connections) |
...