powered by
Replace all instances of NA in character variable with empty string.
na2empty(x)
A character vector with NA values replaced with empty string.
A character vector.
unfactor
## Create character variable with missing values ex1 <- c( 'A', NA, 'B', NA, 'C', NA ) ex1 ## Replace NAs with empty string ex1 <- na2empty( ex1 ) ex1
Run the code above in your browser using DataLab