single_value: Wrapper for possible null objects

View source: R/utils.R

single_valueR Documentation

Wrapper for possible null objects

Description

Wrapper for possible null objects

Usage

single_value(x)

Arguments

x

Object to check

Value

The same object or NA if the object is null.

Examples

single_value(1)
single_value(NA)
single_value(NULL)
single_value(1:3)

jirilukavsky/jspsychread documentation built on Jan. 29, 2023, 5:35 p.m.