View source: R/ds.summaryVars.R
ds.summaryVars | R Documentation |
The function executes the ds.summary function for all numeric or integer variables of a data.frame.
ds.summaryVars(df = "D", datasources = NULL, save = FALSE)
df |
A data.frame on the server-side. |
datasources |
A list of |
save |
if TRUE, the output is saved in the working directory as a csv fil. Default is FALSE. It runs the datashield function ds.summary()and calculates the standard deviation in all numeric and integer variables of each OpalConnection |
ds.summaryVars analyses the classes of variables of a server-side data.frame and executes the ds.summary function for all variables which are of type 'numeric' or 'integer'. Additionally, it also provides the standard deviation for those variables.
a list with the summary of each variable
Sofia Siampani (Max-Delbrueck-Center, Berlin), Florian Schwarz (German Institute of Human Nutrition, Potsdam-Rehbruecke)
## Not run:
# Version 1.0
# Connecting to Opal Servers
# loading necessary packages
require("DSI")
require("DSOpal")
require("dsBaseClient")
require("dsSupportClient")
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()
# Log onto the remote Opal training servers
connections <- DSI::datashield.login(logins = logindata, assign = TRUE, symbol = "D")
# Retrieving information on variable classes in the specified data.frame
ds.summaryVars(df = "D", save = TRUE)
# Clear the Datashield R sessions and logout
datashield.logout(connections)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.