Learn R Programming

VizOR (version 0.8-5)

representNA: Convert "NA"s to NAs

Description

A basic utility function converting "NA" strings to R's missing type, NA.

Usage

representNA(x)

Arguments

x
A vector of class 'character', which may contain the string "NA" to be replaced with NA.

Value

Returns the vector x, with all "NA" elements recoded as NA.

Examples

Run this code
## TODO: Provide an example

Run the code above in your browser using DataLab