ds.mean {dsBaseClient} | R Documentation |
This function is similar to the R function mean
.
ds.mean(x = NULL, type = "combine", datasources = NULL)
x |
a character, the name of a numerical vector |
type |
a character which represents the type of
analysis to carry out. If |
datasources |
a list of opal object(s) obtained
after login in to opal servers; these objects hold also
the data assign to R, as |
It is a wrapper for the server side function.
a numeric
Gaye A., Isaeva I.
ds.quantileMean
to compute quantiles.
ds.summary
to generate the summary of a variable.
{ # load that contains the login details data(logindata) # login and assign specific variable(s) myvar <- list('LAB_TSC') opals <- datashield.login(logins=logindata,assign=TRUE,variables=myvar) # Example 1: compute the pooled statistical mean of the variable 'LAB_TSC' - default behaviour ds.mean(x='D$LAB_TSC') # Example 2: compute the statistical mean of each study separately ds.mean(x='D$LAB_TSC', type='split') # clear the Datashield R sessions and logout datashield.logout(opals) }