h_null_if_na: Getting 'NULL' for 'NA'

View source: R/helpers.R

h_null_if_naR Documentation

Getting NULL for NA

Description

[Stable]

A simple helper function that replaces NA object by NULL object.

Usage

h_null_if_na(x)

Arguments

x

(any)
atomic object of length 1. For the definition of "atomic", see is.atomic().

Value

NULL if x is NA, otherwise, x.

Examples

h_null_if_na(NA)

Roche/crmPack documentation built on April 30, 2024, 3:19 p.m.