Learn R Programming

tidytlg (version 0.1.5)

replace_na_with_blank: Replace NA with ""

Description

Used to swap in "" for by variables so the headers sort correctly to the top

Usage

replace_na_with_blank(x)

Value

x with NA's replaced with "". Factors will add "" as the first level.

Arguments

x

variable to check for NA and replace with "".

Examples

Run this code
replace_na_with_blank(c("a", "b", NA))

replace_na_with_blank(factor(c("a", "b", NA), levels = c("a", "b")))

Run the code above in your browser using DataLab