ag.ds.checkvar: Checks if all variables do exist and are not empty

Description Usage Arguments Value Author(s) Examples

Description

This function check that the variables to analyse are (1) available from all the studies and (2) that they do not contain only missing values (NAs). It excludes studies that fail any of these two checks

Usage

1
  ag.ds.checkvar(opals, variables)

Arguments

opals

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.

variables

a character vector, the names of the variable(s) to check

Value

the opal objects which passed the checks

Author(s)

Gaye, A.

Examples

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

# load that contains the login details
data(logindata)

# login and assign specific variable(s)
myvar <- list("LAB_TSC")
opals <- ag.ds.login(logins=logindata,assign=TRUE,variables=myvar)

# run checks for the variable LAB_TSC
ag.ds.checkvar(opals=opals, variables=list(quote(D$LAB_TSC)))
}

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