RpsiXML (version 2.14.0)

null2na: Turns null or NA into character "NA"

Description

The functions turns NULL or NA into character "NA"

Usage

null2na(x)

Arguments

x
A vector

Value

Either the original vector (if not NULL or logical NA) or character NA

Examples

Run this code
null2na(NA)
null2na(NULL)

Run the code above in your browser using DataLab