Learn R Programming

valdr (version 2.0.0)

.safe_value: Safely extract a single value

Description

Internal helper function used to safely retrieve a single value from an object. If the value is NULL, it is replaced with an empty string ("").

Usage

.safe_value(x)

Value

The original value, or "" if NULL. Internal function (not designed to be used directly by end users)

Arguments

x

A single value, possibly NULL.