na.to.empty: NA to Empty

Description Usage Arguments Value Examples

View source: R/natoempty.R

Description

Converts all NA's in a character vector to empty values

Usage

1

Arguments

x

A character vector

Value

A character vector contain all of non NA elements of x

Examples

1
2
3
4
5
6
ex1 = LETTERS[1:10]
ex2 = c(NA, letters, NA)
ex3 = c(NA, NA, NA, NA, "A")
na.to.empty(ex1)
na.to.empty(ex2)
na.to.empty(ex3)

debarros/dbTools documentation built on Dec. 7, 2018, 2:10 p.m.