ag.isNA.ds: Checks if a vector is empty

Description Usage Arguments Value Author(s) Examples

Description

this function is similar to R function is.na but instead of a vector of booleans it returns just one boolean to tell if all the element are missing values.

Usage

1
  ag.isNA.ds(xvect)

Arguments

xvect

a numerical or character vector

Value

the integer '1' if the vector contains on NAs and '0' otherwise

Author(s)

Gaye, A.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
# load the login data
data(logindata)

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

# check if the variable 'LAB_HDL' is empty
datashield.aggregate(opals, quote(ag.isNA.ds(D$LAB_HDL)))

## End(Not run)

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