Learn R Programming

walmartAPI (version 0.1.5)

ifelse_null: Returns NA if input is null, else returns input

Description

Returns NA if input is null, else returns input

Usage

ifelse_null(x)

Arguments

x

A number.

Value

A number or NA.

Examples

Run this code
# NOT RUN {
ifelse_null(NA)
ifelse_null(1)
# }

Run the code above in your browser using DataLab