ji.ds.data.frame: Creates data frames

Description Usage Arguments Value Author(s) Examples

Description

Creates data frames

Usage

1
2
  ji.ds.data.frame(datasources = NULL, vector = NULL,
    newobj = NULL)

Arguments

datasources

a list of opal object(s) obtained after login in to opal servers; these objects hold also the data assign to R, as dataframe, from opal datasources.

vector

a vector that holds the objects to be combined (together with additional options)

newobj

the name of the output object. If this argument is set to NULL, the name of the new object is 'dframe'.

Value

a message is displayed when the action is completed.

Author(s)

Gaye, A. (amadou.gaye

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
{

# load the file that contains the login details
data(logindata)

# login and assign the required variables to R
myvar <- list("LAB_TSC","LAB_HDL")
opals <- datashield.login(logins=logindata,assign=TRUE,variables=myvar)

# combine the 'LAB_TSC' and 'LAB_HDL' variables into a data frame
myvect <- quote(data.frame(D$LAB_TSC, D$LAB_HDL))
ji.ds.data.frame(datasources=opals, vector=myvect)

# combine the 'LAB_TSC' and 'LAB_HDL' variables into a data frame   DOES NOT WORK (TAKES CHECK.NAMES AND STRINGSASFRACTORS AS VARIABLES)
myvect <- quote(data.frame(D$LAB_TSC, D$LAB_HDL, check.names=T, stringsAsFactors=F))
ji.ds.data.frame(datasources=opals, vector=myvect)
}

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