ji.ds.asMatrix: Attempts to turn its argument into a matrix

Description Usage Arguments Value Author(s) Examples

Description

This function is similar to R function as.matrix.

Usage

1
2
  ji.ds.asMatrix(datasources = NULL, x = 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.

x

an object to be converted into a matrix

newobj

the name of the new vector.If this argument is set to NULL, the name of the new variable is the name of the input variable with the suffixe '_matrix' (e.g. 'D_matrix', if input variable's name is 'D')

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
{

# load that contains the login details
data(logindata)

# login and assign specific variable(s)
opals <- datashield.login(logins=logindata,assign=TRUE)

# turn the data frame D into a matrix
ji.ds.asMatrix(datasources=opals, x=quote(D))
}

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