ag.checkfactor.ds: Verifies that a factor vector is valid

Description Usage Arguments Value Author(s) Examples

Description

This function checks if a numeric or character factor vector contains levels with counts > 0 and < 5.

Usage

1

Arguments

xvect

a numeric of character vector of type factor

Value

a list which contains two elements: summary table, the results of the tabulation of the input vector status, tells if the factor is valid, 1 if one or more levels have counts of between 0 and 5 and 0 otherwise.

Author(s)

Gaye, A.; Newby, C.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# load the file that contains the login details
data(logindata)

opals <- ag.ds.login(logins=logindata,assign=TRUE,variables=myvar)

# check that the factor does not contain categories with count > 0 and < 5
output <- datashield.aggregate(opals, quote(ag.checkfactor.ds(D$LAB_TSC)))

## End(Not run)

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