Learn R Programming

crmPack (version 2.0.0)

h_null_if_na: Getting NULL for NA

Description

[Stable]

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

Usage

h_null_if_na(x)

Value

NULL if x is NA, otherwise, x.

Arguments

x

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

Examples

Run this code
h_null_if_na(NA)

Run the code above in your browser using DataLab