str_replace_na: Turn NA into "NA"

View source: R/replace.R

str_replace_naR Documentation

Turn NA into "NA"

Description

Turn NA into "NA"

Usage

str_replace_na(string, replacement = "NA")

Arguments

string

Input vector. Either a character vector, or something coercible to one.

replacement

A single string.

Examples

str_replace_na(c(NA, "abc", "def"))

tidyverse/stringr documentation built on Nov. 20, 2023, 5:16 p.m.