fill_A_NA_with_B | R Documentation |
fill NA in vector A with values from vector B
fill_A_NA_with_B(a, b)
a |
vector containing NA to replace |
b |
vector containing substitute values, must be same length as a |
improved vector a
a = c(1,NA,3,NA) b = 1:4 fill_A_NA_with_B(a,b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.