Learn R Programming

gWidgets2 (version 1.0-9)

getWithDefault: Return x unless NULL, NA, length 0, ..., in which case we give default

Description

Return x unless NULL, NA, length 0, ..., in which case we give default

Usage

getWithDefault(x, default)

Arguments

x

value to return or its default

default

default value

Value

x or default