na_empty: Return 'NA' if an object is empty.

na_emptyR Documentation

Return NA if an object is empty.

Description

Return NA if an object is empty.

Usage

na_empty(x)

Arguments

x

An object.

Value

NA if x is empty (length(x) == 0), otherwise x.

Examples

na_empty(integer())

bioinfocz/scdrake documentation built on Sept. 19, 2024, 4:43 p.m.