ds.quantileMean {dsBaseClient} | R Documentation |
This function calculates the mean and quantile values of a server-side quantitative variable.
ds.quantileMean(x = NULL, type = "combine", datasources = NULL)
x |
a character string specifying the name of the numeric vector. |
type |
a character that represents the type of graph to display.
This can be set as |
datasources |
a list of |
This function does not return the minimum and maximum values because they are potentially disclosive.
Depending on the argument type
can be carried out two types of analysis:
(1) type = 'combine'
pooled values are displayed
(2) type = 'split'
summaries are
returned for each study.
Server functions called: quantileMeanDS
, length
and numNaDS
ds.quantileMean
returns to the client-side the quantiles and statistical mean
of a server-side numeric vector.
DataSHIELD Development Team
ds.mean
to compute the statistical mean.
ds.summary
to generate the summary of a variable.
## Not run:
## Version 6, for version 5 see the Wiki
# connecting to the Opal servers
require('DSI')
require('DSOpal')
require('dsBaseClient')
builder <- DSI::newDSLoginBuilder()
builder$append(server = "study1",
url = "http://192.168.56.100:8080/",
user = "administrator", password = "datashield_test&",
table = "CNSIM.CNSIM1", driver = "OpalDriver")
builder$append(server = "study2",
url = "http://192.168.56.100:8080/",
user = "administrator", password = "datashield_test&",
table = "CNSIM.CNSIM2", driver = "OpalDriver")
builder$append(server = "study3",
url = "http://192.168.56.100:8080/",
user = "administrator", password = "datashield_test&",
table = "CNSIM.CNSIM3", driver = "OpalDriver")
logindata <- builder$build()
connections <- DSI::datashield.login(logins = logindata, assign = TRUE, symbol = "D")
#Get the quantiles and mean of a server-side variable
ds.quantileMean(x = "D$LAB_TRIG",
type = "combine",
datasources = connections)
# clear the Datashield R sessions and logout
datashield.logout(connections)
## End(Not run)