x <- c('test', NA)
if (stri_install_check(silent=TRUE))
stri_paste(x, 1:2) # "test1" NA
if (stri_install_check(silent=TRUE))
paste(x, 1:2) # "test 1" "NA 2"
if (stri_install_check(silent=TRUE))
stri_paste(stri_replace_na(x), 1:2, sep=' ') # "test 1" "NA 2"
Run the code above in your browser using DataLab