oneToNULL: Convert a value of 1 to a NULL value.

Description Usage Arguments Value

View source: R/utilities.R

Description

oneToNull is a utility function that returns NULL when a value of 0 or 1 is passed to it, otherwise it returns the original value.

Usage

1
oneToNULL(value, convertOneToNULL)

Arguments

value

The value to check.

convertOneToNULL

TRUE to convert 1 to NULL.

Value

NULL if value==1, otherwise value.


cbailiss/basictabler documentation built on July 2, 2021, 1:16 a.m.