Skip to content

Commit

Permalink
make str_replace_na example show NA -> "NA" conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
tjmahr committed Aug 5, 2015
1 parent 380c88f commit d48102a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/replace.r
Expand Up @@ -87,7 +87,7 @@ fix_replacement <- function(x) {
#' @inheritParams str_replace
#' @export
#' @examples
#' str_replace_na(c("NA", "abc", "def"))
#' str_replace_na(c(NA, "abc", "def"))
str_replace_na <- function(string, replacement = "NA") {
stri_replace_na(string, replacement)
}

0 comments on commit d48102a

Please sign in to comment.