Learn R Programming

lint (version 0.3)

with_default: Look for an argument.

Description

Look for an argument.

Usage

with_default(x, default)

Arguments

x
an object
default
the default value

Value

If x is neither NULL nor NA then x otherwise the default