...
Note |
---|
In Horizontal DataSHIELD pooled analysis the data are harmonized and the variables given the same names across the studies, as agreed by all data providers. |
Assign individual variables on login
Users can specify individual variables to assign to the server-side R session. It is best practice to first create a list of the Opal variables you want to analyse.
- The example below creates a new variable
myvar
that lists the Opal variables required for analysis:LAB_HDL
andGENDER
- The
variables
argument in the functiondatashield.login
usesmyvar
, which then will call only this list.
Code Block | ||
---|---|---|
| ||
myvar <- list('LAB_HDL', 'GENDER')
opals <- datashield.login(logins=logindata,assign=TRUE,variables=myvar)
#Logging into the collaborating servers
#Assigining data:
#study1...
#study2...
#Variables assigned:
#study1--LAB_HDL, GENDER
#study2--LAB_HDL, GENDER
|
Info | ||
---|---|---|
| ||
Assigned data are kept in a data frame (table) named |
- The example below uses the argument
symbol
in thedatashield.login
function to change the name of the data frame fromD
tomytable
.
Code Block | ||
---|---|---|
| ||
myvar <- list('LAB_HDL', 'GENDER')
opals <- datashield.login(logins=logindata,assign=TRUE,variables=myvar, symbol='mytable')
#Logging into the collaborating servers
#Assigining data:
#study1...
#study2...
#Variables assigned:
#study1--LAB_HDL, GENDER
#study2--LAB_HDL, GENDER
|
Note |
---|
Only DataSHIELD developers will need to change the default value of the last argument, |
====================
Tip | |||||||||
---|---|---|---|---|---|---|---|---|---|
If you have not installed the DataSHIELD test environment you can login to our cloud Opal test servers using the alternative details below. This will require a good internet connection. Please note this service is not reliable and will be discontinued soon.
The login template for the cloud Opal test servers can be called using:
|