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

View source: R/utilities.R

oneToNULLR Documentation

Convert a value of 1 to a NULL value.

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

oneToNULL(value, convertOneToNULL)

Arguments

value

The value to check.

convertOneToNULL

TRUE to convert 1 to NULL.

Value

NULL if value is 0 or 1, otherwise value.


pivottabler documentation built on Oct. 1, 2023, 5:07 p.m.