Skip to contents

Convert NULL values to NA

Usage

null2na(x)

Arguments

x

A value

Value

The value

Details

This is an internal function used to convert NULL values to NA. This is useful in if() statements when checking the value of an object which may possibly not exist.

This function is *not* vectorized.