Description Usage Arguments Value Author(s) Examples
fill_missing
takes in two atomic vectors or lists, x
and with
, and returns x
with the values of with
in the cases where x is NA or an empty string.
1 | fill_missing(x, with)
|
x, with |
atomic vectors or lists |
a modified version of x
Sven Halvorson (svenedmail@gmail.com)
1 2 3 4 5 6 7 | one = c(1:3,NA,4:6,NA)
two = -8:-1
fill_missing(one,two)
three = c(letters[1:3],NA,"","SILLY PEANUT BUTTAH","")
four = 1:7
fill_missing(three, four)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.