repijson (version 0.1.0)

notNA: Return a value only if another is not NA

Description

Return a value only if another is not NA

Usage

notNA(x, trueValue, defaultValue = NA)

Arguments

x
The value to test for NA
trueValue
The value to return if x is not NA
defaultValue
The value to return if x is NA

Value

defaultValue if x is NA or trueValue if x is not NA