ji.ds.dim: Retrieves the dimension of an object

Description Usage Arguments Value Author(s) Examples

Description

this function is similar to R function dim

Usage

1
  ji.ds.dim(datasources = NULL, x = 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 R object, for example a matrix, array or data frame

Value

for an array, NULL or a vector of mode integer

Author(s)

Gaye, A. (amadou.gaye

Examples

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

# load that contains the login details
data(logindata)

# login
opals <- datashield.login(logins=logindata,assign=TRUE)

# Example 1: Get the dimension of the assigned datasets
ji.ds.dim(datasources=opals, x=quote(D))

# Example 2: Input has to be either matrix, data frame or an array
ji.ds.dim(datasources=opals, x=quote(D$LAB_TSC))
}

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