ag.ds.login: Logs in and assigns variables to R

Description Usage Arguments Value Author(s) Examples

Description

This function allows for clients to login to opal servers and (optionaly) assign all the data or specific variables from Opal datasources to R. The assigned dataframes (one for each opal server) are named 'D'.

Usage

1
2
  ag.ds.login(logins = NULL, assign = FALSE,
    variables = NULL)

Arguments

logins

a dataframe that holds login details

assign

a boolean which tells whether or not data should from the opal datasource to R after login into the server(s).

variables

specific variables to assign. If assign is set to FALSE this argument is ignored otherwise the specified variables are assign to R. If no variables are specified (default) the whole dataset is assigned.

Value

an object of class opal

Author(s)

Gaye, A.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
{
# load that contains the login details
data(logindata)

# Example 1: just login (default)
opals <- ag.ds.login(logins=logindata)

# Example 2: login and assign the whole dataset
opals <- ag.ds.login(logins=logindata,assign=TRUE)

# Example 3: login and assign specific variable(s)
myvar <- list("LAB_TSC")
opals <- ag.ds.login(logins=logindata,assign=TRUE,variables=myvar)
}

datashield/ag.dev.cl documentation built on May 14, 2019, 7:46 p.m.