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

binary.testR Documentation

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

Description

Binary

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

Usage

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/ucbudar documentation built on July 15, 2024, 5:03 p.m.