identity_ellipsis: Return argument unchanged

View source: R/base.R

identity_ellipsisR Documentation

Return argument unchanged

Description

It can often be useful (when developing pipelines for example), to have access to a function that simply returns the element that it receives. The base::identity() function works well for only one argument, but in some cases following arguments should be ignored. In those cases the identity_ellipsis() function can come in handy.

The function was previously called noop() but that name is now deprecated.

Usage

identity_ellipsis(x, ...)

noop(x, ...)

Arguments

x

The single argument to (not) process.

...

Any other arguments are ignored

Value

The argument x is returned unchanged.


torfason/zulutils documentation built on Aug. 21, 2023, 5:46 p.m.