Description Usage Arguments Details Value Author(s) See Also Examples
This function is similar to the R function mean
.
1 2 |
x |
a character, the name of a numerical vector |
type |
a character which represents the type of analysis to carry out.
If |
checks |
a boolean, if TRUE (default) checks that verify elements on the server side such checks lengthen the run-time so the default is FALSE and one can switch these checks on (set to TRUE) when faced with some error(s). |
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | {
# 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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.