Maybe: Maybe call a function

Description Usage Arguments Value

View source: R/functional.R

Description

If the argument(s) to a function are missing or NULL, return NULL; otherwise apply the function.

Usage

1
Maybe(fn)

Arguments

fn

A function.

Value

A function.


gschofl/rmisc documentation built on May 17, 2019, 8:54 a.m.