binary.test: Binary checks if a vector is empty or not, return a factor...

Description Usage Arguments Value

Description

Binary

checks if a vector is empty or not, return a factor with optional descriptive names

Usage

1
binary.test(x, i, newname, emptyname = F, notemptyname = T)

Arguments

x

an data frame to be analyzed. The first column must be pidm.

i

the numerical index of the column to be analyzed.

newname

a string for the name of the new column

emptyname

a string to be used as the factor level for empty values. Defaults to FALSE.

not

emptyname a string to be used as the factor level for values that are not empty. Defaults to TRUE

Value

Returns a data frame with the first column of the original data frame (hopefully pidm) and the new column.


crazybilly/muadc documentation built on March 6, 2021, 4:15 p.m.