Learn R Programming

traitr (version 0.14)

get_with_default: Function to return value or an object (or default if value is null, NA or "")

Description

Function to return value or an object (or default if value is null, NA or "")

Usage

get_with_default(x, default)

Arguments

x
object
default
default value

Value

Returns default if x is NA, null or "", otherwise x