ji.ds.complete.cases: Returns a logical vector indicating which cases are complete,...

Description Usage Arguments Value Author(s) Examples

Description

This function is similar to R function complete.cases.

Usage

1
2
  ji.ds.complete.cases(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.

xlist

a list of objects to be checked for completeness.

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 '_complete' (e.g. 'D_complete', 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
12
13
14
15
{

# load that contains the login details
data(logindata)

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

# Create a vector with indices for complete observations (rows)
ji.ds.complete.cases(datasources=opals, x=quote(D))

# Create a vector with indices for complete observations for LAB_TSC and PM_BMI_CONTINUOUS variables
input = list(quote(D$LAB_TSC),quote(D$PM_BMI_CONTINUOUS))
ji.ds.complete.cases(datasources=opals, x=input, newobj='TSC_BMI_complete')
}

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