ji.ds.isNA: Indicates which elements are missing

Description Usage Arguments Value Author(s) Examples

Description

This function is similar to R function is.na.

Usage

1
  ji.ds.isNA(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 tested

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 '_isna' (e.g. 'LAB_TSC_isna', if input variable's name is 'LAB_TSC')

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
{

# load that contains the login details
data(logindata)

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

# Create a vector which indicates missing values in the LAB_TSC variable
ji.ds.isNA(datasources=opals, x=quote(D$LAB_TSC))

# Create a matrix indicating missing observations in D
ji.ds.isNA(datasources=opals, x=quote(D))
}

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